Please i am trying to use a flow that allows users to upload a pdf or docx file to a sharepoint site from powerapps. i have tried to add the flow in powerapps but not sure what the values for the run parameters file name, file content & file path should be, as i intend for it to be dynamic.
when i created the flow i chose the ask in powerapss option, but dont know how to complete the process in powerapps. thank you.
I guess that you have created a flow looks like below. May I suggest you configure the Folder Path when you creating the flow?
Then you could create an app and configure the OnSelect property of a button as savefilefrompowerapps.Run(TextInput1.Text,TextInput2.Text).
Hope this could be a reference for you.
Thank you for your response. Please can I just clarify, what folder path am I to use in creating the flow? The point is , I want people to be able to upload documents from their phones or laptops, so if I put a fixed folder path, would it still allow for this to happen? and how do I choose which folder path to use? Thank you.
I tried to add a folderpath like you suggested. Apart from not knowing what to do, I clicked on that folder icon by the side and this was the error message -
When creating the flow, I tried to configure the Folder Path as “Ask in PowerApps”. As currently we are not able to create a connection from PowerApps to SharePoint library, so I was not able to configure the Folder Patch in the app.
So I tried to configure the Folder Path as the library which has been created in SharePoint site. Just as the screenshot I provided before.
From the error message, I assumed that you were not using the right Site URL, please enter the URL of your site, then click the “Show Picker” button to select the folder path.
About how to specify a SharePoint site, hope this document could be a reference for you:
Please feel free reply if you need more help.
Thank you I made some progress today. I specified only the URL, and I was able to get options for the folders. A couple of things though,
1. My document library didn't show up in the list of folders (I chose documents as it was the closest.
2. When I wanted to define onselect parameters, the values as specified below didn't work and it still promted me for createfile_filename, etc,filecontent,filepath so not sure what to do next. I put in the Text1.text etc , but that didn't work.
This seems to be the missing part of the puzzle (and of course why my new folder wasn't showing). Thanks a lot.
Please I am still expecting a reply on this. I am stuck on running the flow in powerapps. After specifying folder path in flow, on specifying the onselect parameters I am still being asked to input file name, content type , folder path and it is rejecting the suggested textinput1.text, etc Please help.
Thanks a lot,
Have you created a Document library in SharePoint Online? In the screenshot I provided before, I selected "test library3", as I have already created this library. So if you have one, you should be able to select it when configuring "Folder Path".
Please try to delete the old flow then recreate a new one, then add it to the app.
I found that if I just update the flow, the changes would not reflect directly on the app, delete and recreate the flow would be helpful.
Please try it and let me know if it works.
Things are getting really frustrating over here. I created a new flow, still the run parameters, where TextInput1.Text,TextInput2.Text were still not accepted. I am not sure what to do. On the flow page I got the following error message
Flow run timed out because the starting action was not performed. Please try again
Also I noticed that both the CDS and the Sharepont sites were not available to be connected to my edit form. It's really
Cheers and thanks so far,
About the flow you have created, the run parameters that are needed in the function box should be the actual name of the Text input controls on your app.
Please try to click the Text input controls under “Your Name” and “Your Email” to get the actual name of the Text input controls. By selecting the control, you could get the name at here:
Then when you run the flow, a file named as “Your Name” will be saved to the library, and the file content would be “Your Email”.
But please check this thread, currently it is not possible to attach a file to a form so there is not control can be used to open up a file picker and select the file and upload the file to Library or other destinations.
Also, you could vote the idea at here, and seems that this idea has a status “Planned”, I guess this feature would be coming soon:
Thank you for your response. The thing is I am not particular about attaching the file to the form. All I want to achieve is upload the file to sharepoint from Powerapps. I have even changed the design of the app and taken away the form and now all you do is click the upload button and select file. I want the resultant action to be that the file is uploaded to sharepoint (without the form).
I'm not sure I understand the text input control. Are you saying I should create a text input box where the name of the file would be spelt out? Can I achieve the above? Without a form because if that cannot be achieved, then I wonder why the flow exists?
Also I realised that when I click on the upload control, it opens mybrowse file window but all the files are greyed out, they cannot be selected. Please help because this function would take away a lot of my troubles.
Apologize for late response.
What do you mean by this “Upload control”? Is it the “Import” control under Controls or the “Add picture” control under Media? I am not sure with this.
Could you help to clarify this statement “Also I realised that when I click on the upload control, it opens mybrowse file window but all the files are greyed out, they cannot be selected”?
I am not able to reproduce this on my side, how could you do this?
By using a flow to create a file to SharePoint library, we can only specify the File Name and File Content using Text input controls. About your questions:
Yes, we should use a Text input control for the file name. It can be achieved by using Flow.
And currently PowerApps only support the connection to SharePoint list but not library, for the file content, we are not able to select files by opening the browse file window, so only text input controls can be used for it.
I agree that this is beyond frustration. I have spent 8 hours tring to get my first Flow to flow (no pun intended). I created a Library in Sharepoint Online to store my photos. I created a Flow titled; Upload a Photo to Sharepoint from Power Apps. As the title inplies, I would like to upload a photo from PowerApps to my Sharepoint Library, NOT to Sharepoint list, which I know is not currently possible.
When I created my Flow, Dynamic content was added for the File Name & File Content fields. Createfile_Filename & Createfile_FileContent. In PowerApps I have tried creating both an AddPicture & Image control, and then adding them to my flow as;
UploadphotototoSharePointfromPowerApps.Run(AddMediaButton3,TextInput1.Text) where AddMediaButton3 is an AddPicture control and TextInput1 is a simple text input control.
UploadphotototoSharePointfromPowerApps.Run(Image3,TextInput1.Text) where Image3 is an Image control and TextInput1 is a simple text input control.
Both of these bring up errors, specifically, "Invalid number of arguments". I have tried adding; Media, Text, Image, Picture, and several other terms to the end of the mmedia or image control with no success.
I have read through this thread and others indicating that both of these fields; FileName & FileContent need to be text fields. But then, how is the Flow supposed to upload a photo? I am totally stumped and cannot find one verifiable example describing what these two fields are supposed to contain.
I have successfully tried two different methods to copy photos to Excel via OneDrive using Patch. But I wanted to see how the Flow would work. But I have been striking out so far.
Have exactly the same problem here and tried to find a solution for hours .... it's really frustrating that it seems not to be possible to send multiple variables/values from PowerApps to Flow (or backwards).
Any news out there?
Sorry if I'm a little too late, but I've been having this issue and just found the solution. No tricks - it's pretty easy:
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Congratulations, the new Super User Season 2 for 2021 has started!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.