Hi All,
I'm quite new to PowerApps and am using the Site Inspector template to learn and play.
One of the things I would like to learn with it is to upload the images and descriptions to SharePoint and a network location with Flow/Power Automate.
I've created the Flow, however, I don't quite understand the logic for parsing the parameters to it, and whether it is possible to include this flow process as part of the 'Save' button which currently runs SubmitForm(FormNewInspection)
Would someone be able to provide some explanations around the CameraPhotos and whether this is possible?
Thanks
Yes, but a very different and more complex process - you might post this on a new thread and explain in a bit of detail what you want to do.
@WarrenBelz Thanks for the solution. Is there a way to run this flow that passes a collection of multiple photos all at once? Thanks!
I made one for photo upload instead of camera control but it only seems to save them as .png photos when I actually upload them from my computer instead taking a photo from a tablet.
OK - I was ambiguous here a bit when I said you could type it in. You have to "Ask in PowerApps" in file content, then delete the entry and then do the dataUriToBinary bit.
It will come up after you have done it.
Shane Young made this video some time age - look at about the 17 minute mark on.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @WarrenBelz ,
No problem - thanks again for the assistance!
I don't seem to have the option for Createfile_FileContent? (image attached)
I tried to manually put the code in the expression field, and while it saves correctly, back in PowerApps it still only asks for one parameter?
Hi @SamTimmins ,
I was having a good day that day . . .
dataUriToBinary(triggerBody()['Createfile_FileContent'])
I was at the end of the post and pulled in the wrong content - I have adjusted my original so anyone starting there will not have to go through the journey.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @WarrenBelz ,
This is the exact code after I've deleted the flow and recreated again fresh:
dataUriToBinary(triggerBody()['Createfile_FileName'])
Hi @SamTimmins ,
Have a look at the exact code in your Create File. (dataUriToBinary( . . . .)
The SharePoint example will certainly not work with Create File 2 unless you have this in the component converted.
Hi @WarrenBelz ,
The green create file is for a network/file server share. I've created other flows using it before and was experimenting with it here.
I assumed it wouldn't make much of a difference, however I did have the SharePoint step as an alternate step with the same issue.
The call in PowerApps is definately only asking for one parameter however, I've tried to delete and recreate it with the same issue.
Any ideas why that might be?
HI @SamTimmins ,
Firstly, what is the Create file action with the green icon - it should be a SharePoint - Create file blue icon as per my first post.
The Flow should ask for two parameters, the first being the file name and the second the photo First(colPhoto).Url . The flow failed because you sent a string "Test.jpg" as the file content and possibly also because of the connector.
Regarding your second question, no I have never used that template.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @WarrenBelz ,
Thanks for the response - that makes a bit more sense now.
I've created a blank app and tried those suggestions, I have a couple of other questions though:
Cheers,
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473