Resolved: Adding images to DOCX file

Hi all,
I’m trying to use Documents to fill out an image into a Word document using Microsoft Flow. I can see in the documentation, I need to use the following:


and then feed it a base64 string. I’m doing this in Flow, but it never populates with the image. I’ve been adding MergeFields to fill in basic text and that works fine, but the images never come through.

Here’s the JSON I’m feeding in from Flow:

and here’s the test Word document I’ve created. I’ve tried adding the code as plain text, and also by hitting CTRL+F9 to add in the curly braces but it won’t work.

Any pointers would be appreciated!

Hello @eddible,

Thanks for the question. I've tested the action and was able to get the signature from your base64 code. I used the same simple template code {{variable}:picture}

My flow:

Create Docx from template:


So, it should work fine. Please give it a try.

Best regards,
Petr Bushuev
Plumsail Team

Ah! I’d been using the merge fields action rather than create doc from template! Switched it over and it works perfectly. Thank you!

1 Like

Hello @eddible,

You’re welcome!

Best ragards,
Petr Bushuev
Plumsail Team