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.
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:
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.
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.
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.
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:
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.
Check out the announcement of Power Platform content at Microsoft Ignite!
Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.
Features releasing from October 2020 through March 2021