PowerApps | Upload Document with Metadata the Easy Way

Описание к видео PowerApps | Upload Document with Metadata the Easy Way

This is PART 2 of How to upload anything to SharePoint. The first video is here:    • Видео  

After watching how other people upload metadata with documents in a SharePoint Library I had to come up with a video with a much simpler method. First thought for a developer is to KEEP IT SIMPLE.

In this example I show how to upload an document to SharePoint with very little JSON and only a 3 step PowerAutomate.

The reason I chose to design the PowerApp this way, is if there are changes to the document Metadata in the future. You will only have to update your PowerApps. Using the JSON method you will need to update your Power Automate Flow and PowerApp to match the new columns.

PowerAutomate button: UploadafiletoSharePointfromPowerApps.Run(Last(DataCardValue10.Attachments).Name,Mid(JSON(UploadImage.Image,JSONFormat.IncludeBinaryData), Find(",", JSON(UploadImage.Image,JSONFormat.IncludeBinaryData))+1, Len(JSON(UploadImage.Image,JSONFormat.IncludeBinaryData)) - Find(",", JSON(UploadImage.Image,JSONFormat.IncludeBinaryData)) -1));
UpdateContext({varMyTimer:true});

OnTimerEnd: Refresh(Documents);UpdateContext({varMyTimer:false});UpdateContext({varMyPopOut:true});

SaveForm Button:
SubmitForm(frmDoc);UpdateContext({varPopup:false})

Gallery Items:
Filter(Documents,Title=Last(DataCardValue10.Attachments).Name)

Комментарии

Информация по комментариям в разработке