In my app I would like the user to be able to take a photo (using the camera function in PowerApps) and afterwards press a button to save the photo as a jpg file in Sharepoint document library.
To me it sounds simple, but I cannot get it to work... ;-)
Could someone please help me with the corret setup of the flow - and the correct coding of the calling of the flow in PowerApps...?
Besides the photo, I would like to add some informations to other columns in the Sharepoint document library regarding the photo... (eg. "Order number" and "Contact")
OnSelect = true, you can collect it if you want. for example collect them and assign it to a gallery.
Button:
OnSelect=
'YourFlow'.Run(
{
file: {
name: "abc.jpg", //name of the file
contentBytes: Camera1.Photo // photo
}
}
)
Create file:
File Name:
triggerBody()?['file']?['name']
File Content:
triggerBody()?['file']?['contentBytes']
After you make it, add more info as you need.
Was this reply helpful?YesNo
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.