cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SPatnala
Frequent Visitor

Upload image from dynamics 365 to "Send Email" action through power automate

Hi All,

 

I have gone through all possible posts to match my criteria. But I haven't found any solution. Hence I am posting this.

 

I created an image field on the custom entity "Teams".  I uploaded the image to Dynamics 365 and it is showing on the form.

 

Now I want to access that image and embed this in email.

 

My Flow looks as follows.

SPatnala_1-1612400160375.pngSPatnala_2-1612400197027.png

 

I received an email, in the below format.

 

SPatnala_3-1612400328781.png

 

I modified it but still, I cannot see the image in email.

 

SPatnala_4-1612400426761.png

 

Please give some ideas on how to achieve this. Any help is appreciated.

 

Thanks,

Satya.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Mira_Ghaly
Dual Super User II
Dual Super User II

@SPatnala 

Add a compose data Operation with the below Expression:

outputs('Get_file_or_image_content')?['body']['$content']

Then use the output to generate the  tag as below

Mira_Ghaly_1-1612401816437.png

 

And use the Output of the compose2 data operation in your email body.

 

Hope this Helps!

 

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.

View solution in original post

Mira_Ghaly
Dual Super User II
Dual Super User II

@SPatnala 

 

can you view the image on your data form?

 

I have made a test at my side and it is working fine with the above solution and in your screenshot too it looks like it is there ; can you check if downloads are disabled on ur email or something like that and can you share the flow run history with the send email step expanded?

 

can you try to it as attachment as well?

Mira_Ghaly_0-1612409340984.png

 

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.

View solution in original post

10 REPLIES 10
Mira_Ghaly
Dual Super User II
Dual Super User II

@SPatnala 

Add a compose data Operation with the below Expression:

outputs('Get_file_or_image_content')?['body']['$content']

Then use the output to generate the  tag as below

Mira_Ghaly_1-1612401816437.png

 

And use the Output of the compose2 data operation in your email body.

 

Hope this Helps!

 

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.

View solution in original post

Hi @Mira_Ghaly ,

 

Thank you for the response.

 

I tried your solution. Still no luck!

 

This is the image I'm trying to access from DynamicsCapture.PNG.

I can't view this image on email.

 

Capture.PNG

Mira_Ghaly
Dual Super User II
Dual Super User II

@SPatnala 

Can you share detailed steps of your flow?

 

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.

Hi @Mira_Ghaly ,

This is my flow.

My Compose2 action is showing CDS content instead of expression. Is this the issue? I added expression for output of "Get image" action and added ['$content'] in the end of the expression.

 

After this, the output expression is changed to CDS content.

SPatnala_0-1612406821767.png

SPatnala_1-1612406848910.png

 

The image field properties as follows:

SPatnala_2-1612406913522.pngSPatnala_3-1612406929025.png

 

Mira_Ghaly
Dual Super User II
Dual Super User II

@SPatnala 

What is the type of your image png / jpeg /gif ?

 

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.

Hi @Mira_Ghaly ,

 

It is jpeg image.

Mira_Ghaly
Dual Super User II
Dual Super User II

@SPatnala 

 

can you view the image on your data form?

 

I have made a test at my side and it is working fine with the above solution and in your screenshot too it looks like it is there ; can you check if downloads are disabled on ur email or something like that and can you share the flow run history with the send email step expanded?

 

can you try to it as attachment as well?

Mira_Ghaly_0-1612409340984.png

 

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.

View solution in original post

Hi @Mira_Ghaly 

 

I tried to attach image to email and it worked fine.

SPatnala_0-1612410246612.png

Run history fo the flow with attachment:

SPatnala_4-1612410451392.png

 

 

SPatnala_2-1612410300026.png

 

Run history of flow without attachment:

SPatnala_3-1612410379404.png

 

 

Mira_Ghaly
Dual Super User II
Dual Super User II

@SPatnala 

So this is sorted out now?

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.

Hi @Mira_Ghaly ,

 

Unfortunately, no. I have to display this on the email body, not as an attachment. 

SPatnala_0-1612413777262.png

 

 

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (28,267)