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?