Use PowerApp and Flow to create a mobile app for adding a document to a library

%3CLINGO-SUB%20id%3D%22lingo-sub-776915%22%20slang%3D%22en-US%22%3EUse%20PowerApp%20and%20Flow%20to%20create%20a%20mobile%20app%20for%20adding%20a%20document%20to%20a%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-776915%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20understanding%20is%20that%20adding%20a%20document%20to%20a%20SharePoint%20document%20library%20is%20not%20possible%20in%20PowerApps%20yet%2C%20but%20you%20can%20add%20an%20attachment%20to%20a%20list.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20my%20thought%20was%20first%20screen%20in%20the%20PowerApp%20is%20add%20the%20attachment%20to%20a%20SharePoint%20list%2C%20then%20after%20submit%2C%20then%20run%20a%20flow%20that%20creates%20that%20file%20in%20the%20library%2C%20then%20the%20navigates%20to%20a%202nd%20screen%20where%20the%20user%20could%20update%20the%20values%20on%20the%20SharePoint%20document%20library%20document.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETotally%20crazy%20to%20try%20to%20execute%3F%26nbsp%3B%20I%20am%20a%20former%20InfoPath%20and%20SharePoint%20designer%20user%2C%20but%20very%20much%20for%20the%20business%20side%2C%20not%20the%20coding%20side.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-776915%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-901249%22%20slang%3D%22en-US%22%3ERe%3A%20Use%20PowerApp%20and%20Flow%20to%20create%20a%20mobile%20app%20for%20adding%20a%20document%20to%20a%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-901249%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F325201%22%20target%3D%22_blank%22%3E%40Laci_Admin_PointB%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENot%20crazy%20at%20all.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20create%20a%20SharePoint%20list%20with%20the%20same%20columns%20as%20in%20your%20document%20library.%20You%20can%20use%20the%20list%20to%20upload%20a%20file%20as%20an%20attachment%20and%20add%20metadata.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20use%20the%20Flow%20to%20copy%20the%20attachment%20to%20your%20document%20library%20and%20update%20the%20file%20properties%20using%20metadata%20from%20SharePoint%20list.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

My understanding is that adding a document to a SharePoint document library is not possible in PowerApps yet, but you can add an attachment to a list. 

 

So my thought was first screen in the PowerApp is add the attachment to a SharePoint list, then after submit, then run a flow that creates that file in the library, then the navigates to a 2nd screen where the user could update the values on the SharePoint document library document.  

 

Totally crazy to try to execute?  I am a former InfoPath and SharePoint designer user, but very much for the business side, not the coding side.  

1 Reply

Hi @Laci_Admin_PointB 

 

Not crazy at all. 

 

You can create a SharePoint list with the same columns as in your document library. You can use the list to upload a file as an attachment and add metadata.

 

Then use the Flow to copy the attachment to your document library and update the file properties using metadata from SharePoint list.