3
votes

Is it currently possible to send a captured image from PowerApps to Microsoft flow?

The basic idea of the app is to take a picture with the camera control then pass the image to a Microsoft flow which will then send an email with the image as an attachment.

1

1 Answers

0
votes

Here is a summary of steps. Links to video and article are in the end.

  1. Add camera control and a button to save the camera capture. So set OnSelect of your button to be:

    UpdateContext({CameraPhoto: Camera1.Stream})
    
  2. Go to Microsoft flow and search template "PowerApps upload file to SharePoint". Give information of where to save in SharePoint in the first two lines. Click "..." in top right corner and select "setting". Click "Cancel". Change "File Content" to:

    dataUriToBinary(triggerBody()['CreatefileFileContent'])
    
  3. Go back to Powerapps, add a button and OnSelect will be:

    UploadimagetoSPO.Run("amyname.jpg",CameraPhoto)
    

Here is an article and video of this tutorial.