web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 06m6Q1B1WPzoHMSa/LIwb0
Power Apps - Building Power Apps
Answered

Camera and Uploading Images using Flow

Like (0) ShareShare
ReportReport
Posted on 10 Feb 2020 01:46:15 by 19

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

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    149,234 Most Valuable Professional on 21 Jul 2022 at 00:20:19
    Re: Camera and Uploading Images using Flow

    @powerappsuser17 ,

    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.

  • powerappsuser17 Profile Picture
    18 on 20 Jul 2022 at 16:35:56
    Re: Camera and Uploading Images using Flow

    @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.

  • WarrenBelz Profile Picture
    149,234 Most Valuable Professional on 12 Feb 2020 at 05:16:45
    Re: Camera and Uploading Images using Flow

    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.

  • SamTimmins Profile Picture
    19 on 12 Feb 2020 at 04:55:38
    Re: Camera and Uploading Images using Flow

    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? 

  • WarrenBelz Profile Picture
    149,234 Most Valuable Professional on 12 Feb 2020 at 04:42:01
    Re: Camera and Uploading Images using Flow

    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.  

  • SamTimmins Profile Picture
    19 on 12 Feb 2020 at 04:31:31
    Re: Camera and Uploading Images using Flow

    Hi @WarrenBelz ,

     

    This is the exact code after I've deleted the flow and recreated again fresh: 

     

    dataUriToBinary(triggerBody()['Createfile_FileName'])

     

  • WarrenBelz Profile Picture
    149,234 Most Valuable Professional on 12 Feb 2020 at 04:15:56
    Re: Camera and Uploading Images using Flow

    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.

  • SamTimmins Profile Picture
    19 on 12 Feb 2020 at 03:27:43
    Re: Camera and Uploading Images using Flow

    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?

  • WarrenBelz Profile Picture
    149,234 Most Valuable Professional on 12 Feb 2020 at 02:40:31
    Re: Camera and Uploading Images using Flow

    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.

    JPGSaveError.pngPhotoFlow2.png

     

     

     

     

     

     

     

     

     

     

     

     

     

    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.

  • SamTimmins Profile Picture
    19 on 12 Feb 2020 at 02:01:05
    Re: Camera and Uploading Images using Flow

    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: 

    • When I use the button to attempt the flow it fails (see attached images). I believe this is because it is only asking for one parameter, whereas your example the FilePhoto.Run() asks for two? 

     

    • Do you have much familiarity with the Site Inspection Microsoft template? I know it's quite a bit more detailed but I'd love to know if there is a way to easily combine the 'Save' button (which currently submits the form) so that it also launches the flow - uploading the gallery/photo images.

     

    Cheers,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473