top of page
  • Writer's pictureYash Agarwal

How to: Add images to a Word Template using MS Flow

In this #PowerShot, I will show you how to add an image to a word template using #MSFlow.

Step 1: Get the bas64 content for the image (while uploading a file in a manual trigger, it by default is of the base64 form and so can be used directly)

Step 2: Initialize a variable of type Object and construct the binary stream for the picture. The content type should be “image/png”.

Step 3: Populate the Word Template: reference the variable to the picture control in the word template and fill up all the other fields as needed.

Step 4: Create a file from the template and save it in the document library. (ensure the “.docx” extension for the filename).

The catch here is the image type content control accepts a jpg/png type file content only and the content needs to be constructed that way in order add the image to that control.

I hope you found this interesting and it helped you.

Recent Posts

See All


bottom of page