web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Form responses to Word...
Power Automate
Unanswered

Form responses to Word template not working

(1) ShareShare
ReportReport
Posted on by 18
I've been struggling with this and Cannot get this process to work. Any help would be greatly appreciated.
 
I have a template Word document that I want Form responses to be entered on, then converted to PDF and emailed. My flow works except the Word document opens with Errors.
 
1. When a new Response is submitted
2. Get Response details
3. Get File content (to grab my word template)
 
This is where it seems to fail:
 
4. Compose - base64ToString(body('Get_file_content'))
5. Compose - I have entered multiple place holders in my word document using '{{xxx}}' where as xxx is whichever word I've placed in to identify, the language is:
replace(replace(replace(outputs('Compose'), '{{Date}}', triggerOutputs()?['']), '{{Eventnumber}}', triggerOutputs()?['']), '{{employeename}}', triggerOutputs()?[''])
 
the "triggerOutputs" is the dynamic information I've entered from the form responses
 
6. Compose - stringToBase64(outputs('Replace_String'))
7. Create file
8. Get file content
9. Send an email
 
When I leave Step 4 and 6 in place, the Word document wont open. When I remove those steps, the Word document works except the placeholders do not populate with my Form responses, it's just a copy of the template. I do not have premium version of Word, so using the "Populate a microsoft word template" isn't an option for me. 
 
Any idea what I may be doing wrong?
Flowerror.png
Screenshot 2024-10-14 215826.png
Categories:
I have the same question (0)
  • dustinkavanagh Profile Picture
    18 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 922

#2
Valantis Profile Picture

Valantis 837

#3
Haque Profile Picture

Haque 534

Last 30 days Overall leaderboard