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 response to match...
Power Automate
Answered

Form response to match value in list then add email from second column to approver

(0) ShareShare
ReportReport
Posted on by 222

Hi,

 

I'm trying to create a flow whereby a form is filled in, and depending on the country select in a drop down, that will then match to a row in a list e.g. Selecting UK from the drop down on the form will match to the UK row in a list and then take the email address from the second column in that row and add it to the approvers section in an approval workflow. 

 

I can use several branches of conditions in parallel to achieve this but surely there is a more dynamic way of selecting a country from a form drop down and adding the relevant individual from that location as an approver. 

 

Help 🙂 !!

Categories:
  • Expiscornovus Profile Picture
    33,995 Most Valuable Professional on at

    Hi @rsymmons,

     

    One approach could be to create an array in your flow with the mappings of countries and email addresses and filter that array based on the response in the form.

     

    Below is an example of that.

     

    1. Add a compose action. Use a mapping like below.

    [
     {
     "Country": "UK",
     "Email": "uk@contoso.onmicrosoft.com"
     },
     {
     "Country": "Netherlands",
     "Email": "nld@contoso.onmicrosoft.com"
     },
     {
     "Country": "Belgium",
     "Email": "blg@contoso.onmicrosoft.com"
     }
    ]

    composecountrymapping.png

     

    2. Add a parse json action. Use the outputs of the previous compose as content. I used the following schema

    {
     "type": "array",
     "items": {
     "type": "object",
     "properties": {
     "Country": {
     "type": "string"
     },
     "Email": {
     "type": "string"
     }
     },
     "required": [
     "Country",
     "Email"
     ]
     }
    }

     

    parsejson_countrymapping.png 

     

    3. Add a filter array action. Use the Outputs of the Parse Json for the From field. Compare the Question with the Country value. This should result in only one row with the correct email.

     

    filterarray_countrymapping.png

     

    4. Add a compose action and add the following expression. Obviously you can use this expression also directly in other actions. This is just an example.

    body('Filter_array')[0]['Email']

     

    emailexpression.png

     

  • rsymmons Profile Picture
    222 on at

    Hi @Expiscornovus,

     

    I've managed to find a solution to my flow, I ended up using a filter query on a get items action to a SP list and then used a variable to pull the email address from there. Just means I can have something a bit more user friendly for staff to update and manage country contacts 🙂 

     

    Your compose and parse action is very useful though so will definitely use this in future!

  • Verified answer
    rsymmons Profile Picture
    222 on at

    This is what I've done:

     

    rsymmons_1-1618476675321.png

    rsymmons_2-1618476762098.png

     

  • Expiscornovus Profile Picture
    33,995 Most Valuable Professional on at

    Yes, a filter query is also a good option 😃. Nice job on fixing it yourself 🙂

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard