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

Populate optional images on a Word template from a Form

Hi everyone,

 

I would like to ask if theres a way to build a Flow that allows to put an image in a Word template pulled from an optional (it must be optional) question from Forms.

 

Basically... I have a Form where users can answer some questions, and load an image (optional).

This answers are being loaded to a Word template.

This word template has a field where the image can be loaded. But the image must be optional.

 

Any ideas?

 

Thanks a lot.

 

If you need pictures, schemas or more info, just let me know.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @ChrisCollao,

 

At first, we should use empty() function to determine the answer of Optional image whether is empty, if there is no image upload, the answer will return null, empty() function will return true. If it not return true, get the uploaded file content and populate it into the Word template:

Annotation 2020-07-06 144758.jpg

About get the upload file content in the MS Form, please refer to this post:

https://powerusers.microsoft.com/t5/Building-Flows/Working-with-files-from-the-Forms-quot-File-Uploa...

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Community Support
Community Support

Hi @ChrisCollao,

 

At first, we should use empty() function to determine the answer of Optional image whether is empty, if there is no image upload, the answer will return null, empty() function will return true. If it not return true, get the uploaded file content and populate it into the Word template:

Annotation 2020-07-06 144758.jpg

About get the upload file content in the MS Form, please refer to this post:

https://powerusers.microsoft.com/t5/Building-Flows/Working-with-files-from-the-Forms-quot-File-Uploa...

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @v-litu-msft  , thanks for your help.

 

With your way I should create 2 word templates? One when there's an imagen, and another for when there is not?

Hi @ChrisCollao,

 

Yes, if the image exists, go to the branch to append the image into Word template, if not, go to the brach not append image.

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-litu-msft thanks again... 

 

Hmmm... Okay, not a very elegant way to solve it. Because if I need 3 optional images, then I should create 9 different word templates to satisfy all the possible branches. Right?

 

Will try this option and let you know.

 

Best regards.

Helpful resources

Announcements
New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (9,121)