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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to set a array var...
Power Automate
Unanswered

How to set a array variable in Power Automate?

(0) ShareShare
ReportReport
Posted on by

Hello Community Members,

Any help for my issue will be greatly appreciated!

 

I have created a Power Automate flow to set the array variable. But I am facing an error. The below image has the error details:
In the below flow, I have taken a array of objects, where age value is less than 50. I wanted to set the Country value to 'Newyork".

Array value:
[
{
"age": 32,
"UserName": "Watson",
"Country": "Washington"
},
{
"age": 52,
"UserName": "Kayla",
"Country": "Texas"
},
{
"age": 82,
"UserName": "Alex",
"Country": "Arizona"
}
]

 

Lidia_1-1713959670078.png

Lidia_2-1713959698384.png

 

Lidia_0-1713959593033.png

Thanks and Regards
@Lidia 

Categories:
I have the same question (0)
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Lidia  Pls use filter array action after your initialize variable.

    Hardesh15_0-1713967169571.png

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

     

  • LH-28081619-0 Profile Picture
    on at

    Hello @Hardesh15 
    Thank you for the reply!
    Can you describe me more about how to set the array variable?

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Lidia  You did correct setup for array variable. Just pass that into filter array 'From' field.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard