Skip to main content

Notifications

Community site session details

Community site session details

Session Id : fD3gzRbMklLZxX9Y2wbNmg
Power Automate - Building Flows
Unanswered

Convert Microsoft Form response to Word doc

Like (0) ShareShare
ReportReport
Posted on 26 Jun 2020 12:41:51 by 2

Hi,

 

I tried to follow this example to create a Flow that converts each new Microsoft Form response to a Word document. But I keep getting the following error message when I test the Flow. The solution posted here didn't solve my problem. What have I done wrong? Apologies for my limited computing knowledge.

 

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerBody()' is of type 'Object'. The result must be a valid array.

 

When asked to "Select an output from previous steps" for the "Apply to each" step, I tried all 4 options:

  • List of response notifications Response ID
  • Body
  • List of response notifications resourceData
  • List of response notifications Item

None of them work. The error message persisted. Help me please! I tried for three hours already with no luck.

 

Thanks,

Phoebe

  • lingo Profile Picture
    2 on 29 Jun 2020 at 01:07:11
    Re: Convert Microsoft Form response to Word doc

    @ChristianAbata

    Below is the screenshot. Thank you in advance! 

     

     

    screenshot.png

     

    This is what I saw when I clicked 'Peek code' for the "Get response details" step:

    {
        "inputs": {
            "host": {
                "connection": {
                    "name""@parameters('$connections')['shared_microsoftforms']['connectionId']"
                }
            },
            "method""get",
            "path""/formapi/api/forms('@{encodeURIComponent('1-QJ7A89_06cHnuoBgxUF2UhfuL2pB5IonMatC4aneBUREtKVE5EVUdZWVgxMjNGNENKOTNUS1VHWi4u')}')/responses",
            "queries": {
                "response_id""@triggerBody()?['resourceData']?['responseId']"
            },
            "authentication""@parameters('$authentication')"
        },
        "metadata": {
            "flowSystemMetadata": {
                "swaggerOperationId""GetFormResponseById"
            }
        }
    }
  • ChristianAbata Profile Picture
    8,947 Most Valuable Professional on 28 Jun 2020 at 20:43:43
    Re: Convert Microsoft Form response to Word doc

    hi @lingo  please could you share an screanshot?

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - Building Flows

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 223 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 222 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 190

Overall leaderboard
Loading started