web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamic Select Stateme...
Power Automate
Unanswered

Dynamic Select Statement: Select Map field doesn't work with Variables

(0) ShareShare
ReportReport
Posted on by

I was trying to build a dynamic select statement and I've found that when I try to put the Map statement inside a variable it doesn't work when selecting from an array.

 

This is the array:

ChrisAllsberry_0-1670966525743.png

 

This is the map statement: {"a" : "@item()['a']","b" : "@item()['b']","c" : "@item()['c']"}

ChrisAllsberry_1-1670966575958.png

 

This is the select using the variable as well as another select that uses the same text:

ChrisAllsberry_2-1670966638705.png

 

Here are the results. The First Select doesn't give me the correct array results but the second one works as expected:

ChrisAllsberry_3-1670966657188.png

 

This it just impossible to use a variable here or is there something wrong?

 

Categories:
I have the same question (0)
  • Verified answer
    v-liwei-msft Profile Picture
    on at

    Hi @ChrisAllsberry 

     

    When you directly enter such as @item()['a'] in Select, this is a call to the a field (dynamic content).
    When you add it to a string variable, @item()['a'] is considered plain text and not a call to dynamic content.

     

    Best Regards,

    Levi

  • YingK Profile Picture
    16 on at

    Hi, 

    I'm dealing with the same issue, so is there any solution to select dynamic columns?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard