cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shafeel_07
Advocate I
Advocate I

How to add images dynamically to Microsoft Word Template using User Control.

Hi Community, 

 

So i have work items in Azure Devops and I'm using flow to copy some of the work item details in to a Microsoft Word Template. Since some of your Repro Steps have images ,when im copying the repro steps into the word template, the images are coming up as URLs instead of the actual image. Is there a way to convert the urls into actual images ? Any help would be much appreciated !

 

Thanks for the help in advance ! 

2 REPLIES 2
DamoBird365
Super User
Super User

Hi @Shafeel_07 

 

Ideally you want to supply your image as an object with content-type and content key/values as follows:

 

DamoBird365_0-1627025303069.png

 

This is how file content is returned to flow when you run "get file content" action.  

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

 

 

Hi @DamoBird365

 

I have looked into your solution. I'm assuming you had created an Image User Control in the template and populated this user control in the flow. This works perfectly fine. Although what I was looking for was somehow using the RichText User Control to have both text and images so whatever is produced in the discussion text in AzureDevops Work item. I've attached a screenshot of what is written in the discussion field in AzureDevOps. So whatever is written in this field i want to populate it in a word doc

 

 

Shafeel_07_0-1627520424332.png

 

Thanks !! 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

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

Users online (2,482)