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

Flow not passing dynamic images to Outlook email message

Hello all,

I have an issue whereby I am building a flow that will email the contents of a Sharepoint Online announcement list item to a group of people whenever a new item is added.  The problem is that images are sometimes embedded in the Body field of the announcement list item and Outlook is stripping the base portion of the URL path to the image stored in the Images library when the message is sent.  Since the Body field is considered dynamic data, I have no control over the display of the contents of the Body field within the Flow email.  Aren't all email Flows built as HTML?  We get the "download the image" message when we open the email in Outlook but because half of the URL address to the image is missing we get a File Not Found error in the Developer Tools console.

This happens whether we use the "From Sharepoint" or "From Address" Insert options in the Rich Text Body field of the Announcement list.

Any suggestions?

4 REPLIES 4
Highlighted
Community Support
Community Support

Re: Flow not passing dynamic images to Outlook email message

 

Hi @pamjustice ,

 

Could you match the screenshot of Flow configuration to illustrate your problem?

 

Regarding embedding pictures in the Email body, you could refer to the following thread and check if it helps below:

https://powerusers.microsoft.com/t5/Building-Flows/Flow-send-e-mail-notification-but-doesn-t-show-ba...

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Flow not passing dynamic images to Outlook email message

Hi @v-bacao-msft 

Thank you for responding to my post.  I read the post you referred to, however, that does not apply to my scenario.  I am inserting the Body field of an announcement list in the email portion of the Flow. 

Flowemailconfig.JPG

The Body field may or may not contain images but the Flow email needs to preserve the paths to any image files stored on Sharepoint.  My test indicate that Sharepoint is striping off the domain portion of the path when an image is inserted into the Body of the announcement.  So when the Flow sends out the email, the referenced image looks like it is stored on the users desktop, not the Sharepoint site.  Since email can't find the image on the local client, it shows the little icon instead.  See below in the console.

 

WebmailFlowResult.JPG

This happens whether I insert the image using the From Sharepoint, From Address, or From Computer options.  From Computer forces you to upload the image file to the Images library anyway so it's really the same as using the From Sharepoint option.  I even tried to switch to the code view of the Body field to enter the image tag <img src="https://mytenantsite/Images1/img.jpg" /> but Sharepoint still striped off the domain portion of the path when it saved the announcement item.  I'm at a loss right now and have run out ideas to try.

Highlighted
Community Support
Community Support

Re: Flow not passing dynamic images to Outlook email message

 

Hi @pamjustice ,

 

In Flow, if you want to add pictures or embed pictures in the email body, just adding the picture link will not work.

If you view such emails in Outlook web app, the pictures you add may be displayed, but in the desktop client, such pictures cannot be displayed normally.

 

Please refer to these links and learn about other ways to solve this problem:

microsoft-flow-how-to-embed-an-image-in-an-email

hacking-flow-to-embed-an-image-in-outlook-email

powerautomate-en/embed-images-in-e-mails-body-using-microsoft-flow

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Flow not passing dynamic images to Outlook email message

@v-bacao-msft 

Sorry to un-solution your reply but your suggestions don't cover the scenario I described.  The images are not being embedded directly in the email body.  They are coming from the Sharepoint list column called "Body".  As I stated, Sharepoint is striping off the domain name portion of the images so that, by the time it gets to a user's email box, the image looks like it is coming from the local user's client desktop and therefore can't find the image.  Is there a way to keep Sharepoint from changing the file path of an image embedded in a list column? To force Sharepoint to preserve the full path?

Thanks for trying.

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (10,790)