Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

MS Forms to "Generate document from Word template" Invalid Parameter with "long answer"

Community Beginner ,
Mar 21, 2024 Mar 21, 2024

I am trying to populate a Word document template from a Microsoft Forms response I am doing this using the "Generate document from MSFT Forms data and Word template, send via E-mail" flow in Power Automate which uses the  "Adobe PDF Services" connector.

 

All the template fields get filled-in fine if the form field is a single text field line, but if any field is a textarea... called "Long answer" in Forms, this results in an "Invalid Parameter" error.  

I cannot find any information on how to insert the relevant field in the json in such a way as it does not throw the error each time.

 

Has anyone else had this problem and can you suggest anything we could try?

 

TIA

 

Screenshot 2024-03-20 at 10.29.04.pngScreenshot 2024-03-20 at 10.28.38.png

 
TOPICS
Document Generation API , PDF Services API , Power Automate
533
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 21, 2024 Mar 21, 2024

We have tried the two ideas suggested here: by @Ben Vanderberg , i.e. remove quotes or add an initialize variable step. We still get the Invalid Parameter error.

If I test a form using the long answer fields but without line breaks in my response then the flow seems to work, it only breaks when a response contains linebreaks,  e.g. a list or a number of paragraphs.

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 27, 2024 Mar 27, 2024
LATEST

Any ideas?  It should be possible to include a textarea as well as a single text field?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources