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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Upload Photo to Sharep...
Power Apps
Answered

Upload Photo to Sharepoint via Flow - does not work after selecting camera

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone

 

My Photo upload via Flow to SharePoint worked fine in my Quality Control Power App.

A few users wanted to use both (front and back) cameras on their mobile devices. So I integrated a dropdown menu to select the devices camera. Now, when I want to upload a photo, the flow fails with the following Message:

 

Hi,

Looks like your flow failed due to invalid trigger data. As per the description shown within this template, the default configuration will only run smoothly if the Power Apps application is sending information to the flow from a Camera control in Power Apps. Please ensure that the Power Apps is set up with the right control.

Thanks

 

So, the "Items" properties for the dropdwon "drpCamera" for selecting the camera is:

 

 

Camera.AvailableDevices

 

 

 

The "Camera" properties are 

 

 

drpCamera.Selected.Id

 

 

And the "OnSelect" properties on the Camera:

 

 

Set(_actualimage; Camera.Photo);; Set(_imgtitle; ....)

 

 

 

I am then - before uploading the photo - creating a preview; the image is displayed just by the "Image" properties:

 

 

_actualimage

 

 

 

It all worked fine, before I added the selection of the Device. 

Any ideas hot to solve this? Do I need to add the Device Information to the "OnSelect" properties of the camera?

 

Thanks, Marc

Categories:
I have the same question (0)
  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Is the return array of Camera.AvailableDevices empty?

    vyujincuimsft_0-1651828702363.png

    A few days ago I also created an App to upload photos to SharePoint via Flow, it works fine.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/PowerApps-Attachment-file-names-to-Sharepoint/m-p/1569634#M403390

     

    I just added a Drop down Control to select the camera device as well, but it still works fine.

    Here are some settings of my App, hope it's helpful.

    vyujincuimsft_1-1651829340767.png

     

     

    Best Regards,

    Charlie Choi

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-yujincui-msft 

     

    Thank you very much for your help. After checking all the settings according to yours, i came to the conclusion that not the camera setting was the problem, but other changes I made.

    I activated the "improved media caputre" in the experimental functions, somehow the format must have been changed with this and the flow failed. After deactivating it works fine again. 

     

    Best Regards, 

    Marc

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 462

#2
WarrenBelz Profile Picture

WarrenBelz 425 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard