cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yoshtrich
Regular Visitor

Posting an Image on an HTML Table for an E-mail update

Hi - 

 

I am creating a SharePoint site that functions as a marketplace, and I am trying to figure out how to create a weekly newsletter to update people about items that were posted in the past week. I've constructed a flow that sends an HTML table to a specified list of people every week, but I am struggling to upload the associated Item Picture on the HTML file. When the email sends, all the text is present, but there is no image.

 

Any idea how to remedy this?

 

yoshtrich_0-1656431672278.png

 

Thanks,

Josh

1 ACCEPTED SOLUTION

Accepted Solutions
v-yujincui-msft
Community Support
Community Support

Hi @yoshtrich ,

 

Do you have a Image Column in your SharePoint list?

Maybe you could check the OUTPUTS of Get Items Action, the value of Thumbnail should be null.

vyujincuimsft_1-1656658350900.png

vyujincuimsft_2-1656658470425.png

If you want to send the pictures in the Image column to the mail, i have made a simple test for your reference.

 

Here is my Flow.

_api/web/Lists/getByTitle('Testlist')/items()?$select=ItemPic,Title
json(items('Apply_to_each')?['ItemPic'])?['fileName']
concat('/SiteAssets/Lists/foldername/',outputs('Compose'))
body('Get_file_content_using_path')?['$content']
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>

<table>
<tr>
   <th>Title</th>
   <th>ItemPic</th>
</tr>
@{variables('varhtmltable')}
</table>

</body>
</html>
 

vyujincuimsft_0-1656664257126.png

vyujincuimsft_1-1656664302132.png

vyujincuimsft_2-1656664698443.png

vyujincuimsft_3-1656664811998.png

Result Screenshot:

vyujincuimsft_4-1656664920602.png

In addition, here are some links that might help you:

https://powerusers.microsoft.com/t5/Using-Connectors/Unable-to-Use-Image-Field-in-Microsoft-List-to-...

https://powerusers.microsoft.com/t5/Building-Flows/Embed-image-into-automated-email-from-Sharepoint-...

https://powerusers.microsoft.com/t5/Building-Flows/Convert-a-JPG-received-by-email-in-PDF-and-send-a...

https://powerusers.microsoft.com/t5/Building-Flows/HTML-format-in-table/m-p/1640451#M182411

 

 

 

Best Regards,
Charlie Choi

View solution in original post

3 REPLIES 3
v-yujincui-msft
Community Support
Community Support

Hi @yoshtrich ,

 

Do you have a Image Column in your SharePoint list?

Maybe you could check the OUTPUTS of Get Items Action, the value of Thumbnail should be null.

vyujincuimsft_1-1656658350900.png

vyujincuimsft_2-1656658470425.png

If you want to send the pictures in the Image column to the mail, i have made a simple test for your reference.

 

Here is my Flow.

_api/web/Lists/getByTitle('Testlist')/items()?$select=ItemPic,Title
json(items('Apply_to_each')?['ItemPic'])?['fileName']
concat('/SiteAssets/Lists/foldername/',outputs('Compose'))
body('Get_file_content_using_path')?['$content']
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>

<table>
<tr>
   <th>Title</th>
   <th>ItemPic</th>
</tr>
@{variables('varhtmltable')}
</table>

</body>
</html>
 

vyujincuimsft_0-1656664257126.png

vyujincuimsft_1-1656664302132.png

vyujincuimsft_2-1656664698443.png

vyujincuimsft_3-1656664811998.png

Result Screenshot:

vyujincuimsft_4-1656664920602.png

In addition, here are some links that might help you:

https://powerusers.microsoft.com/t5/Using-Connectors/Unable-to-Use-Image-Field-in-Microsoft-List-to-...

https://powerusers.microsoft.com/t5/Building-Flows/Embed-image-into-automated-email-from-Sharepoint-...

https://powerusers.microsoft.com/t5/Building-Flows/Convert-a-JPG-received-by-email-in-PDF-and-send-a...

https://powerusers.microsoft.com/t5/Building-Flows/HTML-format-in-table/m-p/1640451#M182411

 

 

 

Best Regards,
Charlie Choi

yoshtrich
Regular Visitor

Where did you get the Schema for Parse JSON?

v-yujincui-msft
Community Support
Community Support

Helpful resources

Announcements
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 (3,992)