Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

Pass image object from power apps to power automate flow


Hi everyone I hope you're doing well,


I've built a flow in which I have a simple power app as a trigger, then a populate word document step and after that a step to convert the populated document into pdf and lastly a step to send an email. Here is the structure :



I have an image field to populate in the word document and I gave it as a parameter askinpowerapps, but when I run the flow in the power app I get this error : The image is not of type PNG or JPG. Please provide an image of type PNG or JPG.

I know that power apps only returns me the reference to a cached image, not the image itself. But I have no idea how to directly get the image object from the power app, is it hidden somewhere in the app so I can access it ?


PS: My image is in a SQL Server table and was declared this way :


And whenever I add a new item through the power app to this table, I upload an image file as well and it is stored like this in my table :



Can anyone help me with this please I'll highly appreciate

Thanks in advance !

Resolver II
Resolver II

Hi @MeSan ,

1. Initialize variable



output is your text getting from Power apps i.e. 0xFFD....


2. Save this object in compose


 hope this helps !


Please click Accept as Solution if my post is helpful to you. 


Helper III
Helper III

Hello @Achavan ,

Yes this sounds a nice solution but when I want to set the variable I don't see the image field in the list :


Do I need to do a specific configuration ?

Thanks in advance.


First you have to initialize variable of type object -




Okey thanks @Achavan 

I don't understand where this variable comes from :


do I need to define it somewhere ?



in your case, you have to add this output  0xFFD.......... 

Helper III
Helper III

Okey but when I try to save the flow I get this message :


and previously no error was mentioned 😕

Any idea where does this come from ?

@AchavanHere is how I've structured the flow :



yes, now use this compose to populate image.


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yes @Achavan  I use it in the populate image field :


But I'm getting a strange error while trying to save the flow :


I can't save the changes..


Where does this come from plz ?

can you please share output expression ?



@Achavanthe outputs function has as parameter an "ask in power apps" which is supposed to be the image reference :


And I should pass it to to flow button when linked with the power app. Is this the right way of doing it ?

Dual Super User
Dual Super User


Can you please check my last reply on the below topic:



If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (5,241)