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

How to attach the docx similar to image?



I have a question about PowerAutomate..So I have a docx template where the field will be fill with data.Now i want to send the email with the docx but not as attachment but similar to inserting image to the mail where it will be opened already and user can view the content instead of have to open the docx. Is there a way to do this?


I have tried converting the document to image and save it to OneDrive, but then, i can't use <img src=''> because create a file did not provide link instead only directory..


Thank you

Community Champion
Community Champion

Hey @ikmalfikri 

If I've understood this correctly, your trying to:

1) Populate a word document with some data

2) Convert word document to an image

3) Embed the resulting image into an email and send

Is that correct? and if so can you confirm how many pages are in the source word document?


Yes, only 1 page document.

Hey @ikmalfikri 

This is a little convoluted... but this approach would work.

1) Convert the Word Document to a PDF

2) Extract the first page of the Word Document as an Image

3) Resize the image

4) Upload the image to storage

5) Build the HTML Email

6) Send the email

NOTE: Email clients like Outlook do not support DataUri's so that is why you need to upload the image file to storage.

Here is the flow:


Here is the output:


JSON for Image Extraction:

"Name": "FirstPage",
"LowerLeftXCoordinate": 0,
"LowerLeftYCoordinate": 0,
"UpperRightXCoordinate": 0,
"UpperRightYCoordinate": 0,
"PageNumber": 1,
"ImageType": "PNG",
"ExtractEntirePage": true,
"Resolution": 300

Expressions (in order):





is there a free option?within Microsoft platform

@ikmalfikri - let me check

Encodian provide a free Sku which allows 50 actions per month

I Have done;

Convert to PDF

Convert to Image

Save to OneDrive

Create Share Link
But the create share link didn't work in Mail..even using img src

@ikmalfikri  - yes, I'm just checking this approach to

@ikmalfikri  - sorry, I'd forgotten the OneDrive action will convert the first page of a document to a JPG 🙂

Here is a simplified version, no need for Encodian (Unless you need to resize the image)

NOTE: A share link will not work... you have to create a direct URL to the image.





Thank you..I will try it..
Is blob free btw?
Very sorry but the current flow i'm working on require no additional cost...

If not just wondering is there any other solution?beside sharepoint as i think sharepoint may work

@ikmalfikri - The Azure storage connector is premium... but still part of the platform. If you don't have access to premium you'll need to the files somewhere else.

Just bear in mind that where ever these files are stored the user received the email must have access to the file... if it's internal users you could try a SharePoint URL.... but if it's external users it must be a storage location which enables anonymous access to the file. Sharing links will not work as they perform redirects

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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,250)