cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Super User
Super User

Re: Truly No-Code Solution for Saving Photos from PowerApps using Flow

Here is a Screenshot of my flow:

 

flow ss.JPG

haniel
Level 8

Re: Truly No-Code Solution for Saving Photos from PowerApps using Flow

Hi @ShanP,

 

What you need to do in Flow, is place the cursor in the File Content text field and then click Ask in PowerApps.  This will create the missing parameter.

 

Now, PowerApps gets a bit finiky sometimes and may not recognize the new parameter from Flow.  In that case, you may need to rebuild your flow.  But give it a shot anyways and let me know how it goes.

Super User
Super User

Re: Truly No-Code Solution for Saving Photos from PowerApps using Flow

@haniel

 

I got it! Thanks! That was the part I didn't get. It's working perfectly now.

haniel
Level 8

Re: Truly No-Code Solution for Saving Photos from PowerApps using Flow

Awesome!  Great to hear.  Good luck.

driverdo19
Level: Powered On

Re: Truly No-Code Solution for Saving Photos from PowerApps using Flow

Also the article from Michael Svenson published a while back showed the same approach (which I also implemented recently) so this is the correct approach for now Smiley Happy http://www.techmikael.com/2017/05/saving-collection-of-images-from.html

JRaasumaa
Level 10

Re: Truly No-Code Solution for Saving Photos from PowerApps using Flow


@driverdo19 wrote:

Also the article from Michael Svenson published a while back showed the same approach (which I also implemented recently) so this is the correct approach for now Smiley Happy http://www.techmikael.com/2017/05/saving-collection-of-images-from.html


 

We also used this to great success many months ago from the exact same post. Glad to see others are benefiting from his work.

 

I stand corrected, It was actually this post we used: http://johnliu.net/blog/2017/5/taking-a-picture-with-powerapps-and-sending-to-sharepoint-with-just-f...

 

All very helpful!

haniel
Level 8

Re: Truly No-Code Solution for Saving Photos from PowerApps using Flow

Absolutely!  Shout out to @Mikael_Svenson and John Liu.  As they say, great minds think alike.

spg-john-liu
Level 8

Re: Truly No-Code Solution for Saving Photos from PowerApps using Flow

What we all find, very quickly after using the dataUriToBinary method ( http://johnliu.net/blog/2017/5/taking-a-picture-with-powerapps-and-sending-to-sharepoint-with-just-f... ), is that people want the other add-picture control.  Because they want to:

 

  • use the high quality photos taken by the phone
  • or an existing picture in phone's gallery
  • or even a movie clip
  • or sound byte
  • or zip file upload

 

Very quickly we find we need to have a Flow that handles all kinds of binary files sent from PowerApps that we can then carry into SharePoint (in the correct format).

 

We solved this with the form-data/multipart header that the web use to send files into a webservice.  Because this is a bit more complex than the standard strings and dataUri string, we can't trigger this from a PowerApps trigger, and that's why we need to build out a Swagger file so PowerApps knows how to call this.

 

https://johnliu.net/blog/2017/7/building-non-json-webservices-with-flow

 

You should definitely try this instead.  This is level 2 of the solution.  I feel you started with this from Paul's blog and went back to level 1.

 

haniel
Level 8

Re: Truly No-Code Solution for Saving Photos from PowerApps using Flow

Hi @spg-john-liu,

 

Thanks for the feedback.  I did have a look at your article and agree that there are several ways to address similar needs.  However, I will challenge your statement of "starting  with this from Paul's blog and went back to level 1".  Some users who are non-technical will never go beyond level 1.  And you may find that for tools such as Flow, that group represents the majroity.  Therefore, it is important to provide them with options, even if they are not as advanced as some of the other possible solutions.

 
spg-john-liu
Level 8

Re: Truly No-Code Solution for Saving Photos from PowerApps using Flow

I think we should talk in person sometimes, words don't convey well what I'm trying to say.  And I definitely think we need to share all these things.

 

The same users that you are referring to, that you say never go beyond level 1.  They never stop asking about how to do level 2 stuff.  I was telling them they need code.  Try AzureFunctions!  That didn't go very well at all.

 

https://community.powerapps.com/t5/PowerApps-Forum/Retrieving-Data-URI-from-an-image-added-via-the-q...

 

So we sit down and brood, and at a point we worked out OK, actually, we can do this with just Flow.  Because Flow can do binary.  And suddenly that part is pretty simple, not much different from dataUriToBinary(triggerBody()), just dataUriToBinary(triggerMultipartBody()) 

You can build this part just with Flow, and test it with Postman.  It works great.

 

But we need to tell PowerApps how to send a Binary to Flow - that's the Swagger bit.  It's silly and cumbersome, but much easier if you take an existing swagger.json and just tweak it.

 

And we try to make it look easy - take this working swagger.json file, and just replace it with the URL from your Flow.

 

And so there is an evolution of this thing, this process, of bending Flow to do a bit more than the out of box stuff.  Everyone's business needs are the same and getting more complex, but as we get familiar with the tool, like Flow, what we can do with them explodes.

 

I stopped thinking people will stay at level 1 or 2.  We need to quick examples and templates to show people it's easy and get people's interest to get in and tinker.  And then we throw everyone in the deep end.  Everyone swims.  Glorious!

 

Check this out.

 

http://johnliu.net/blog/2017/10/from-office-365-to-minecraft-connected-with-flow

 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 49 members 4,786 guests
Please welcome our newest community members: