i need to send a uploaded image to power automate flow in power app i am getting an error Run function has some invalid argument type (image)
Way of passing image file to Power automate flow as input from Power Apps is depend on which trigger you are using in your flow - PowerApps or PowerApps (V2).
If you are using PowerApps
trigger:
You have to pass the image file in binary data format using JSON()
function and then convert it again in your Power Automate flow.
Example:
FlowName.Run(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData));
Detailed article: Upload Photos from Power Apps to Sharepoint using Power Automate
If you are using PowerApps (V2)
trigger:
You have to pass the image file in object format with file name and content.
For example:
FlowName.Run(
{
contentBytes: UploadedImage1.Image,
name: Text(Now(), "yyMMddhhmmss")
}
);
Detailed article: Power Apps Add Picture Control And Save To SharePoint Library
There is a Microsoft Power Automate template available as well which you can try: Upload a photo to SharePoint from Power Apps