Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

When Form Submitted - Identify Row in Excel and populate word template from that row

(0) ShareShare
ReportReport
Posted on by

I am trying to build a flow where when a form is submitted, an excel table is checked and based on a response in the form the data from a specific row is pulled and entered into a word template.

I was able to build a flow that pulled the last row in the table into a word document (the flow below without the 'get response details' step) but am having trouble using a unique identifier entered in the form to locate the row that should be pulled into the word template.

 

I thought I could add the get response details and a filter query but am not having any luck (using the 'get response details' without a filter query is resulting in word documents being generated for every row in the excel table. When I add the filter query pictured below then I get a syntax error).

 

Am I on the right track with this flow? If so, how do I fix it?

Or am I completely off track and there's another way I can do this?

(If possible, please explain in layman's terms, I'm a newbie to this with no tech background!)

 

My current flow and the filter query I tried which resulted in a syntax error: 

Flow Part 1Flow Part 1

 

Flow Part 2Flow Part 2

 

attempted filter query (resulted in syntax error)attempted filter query (resulted in syntax error)

 

  • Verified answer
    v-liwei-msft Profile Picture
    on at
    Re: When Form Submitted - Identify Row in Excel and populate word template from that row

    Hi @jand4321 

     

    First, column names with spaces cannot be used in Filter Query. 

    You can use Filter Array to filter. 

    Then traverse the value returned by Filter Array in apply to each.

    vliweimsft_0-1666155099140.jpeg

    vliweimsft_1-1666155108658.png

    vliweimsft_2-1666155120027.png

     

    Best Regards,

    Levi

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

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

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1