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 / Creating condition fro...
Power Automate
Unanswered

Creating condition from attributes in HTTP Get Body

(0) ShareShare
ReportReport
Posted on by 242

I am using an HTTP Get action and then Selecting the attributes from the body. I want to create a condition that uses the attribute values but I can't get the syntax correct. Can someone give me an example or tell me what I'm doing wrong.

WFCondition.png

 

 

 

 

 

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @DLGross,

     

    Have you solved this problem? 

    I tested it and found that the problem is that after using the Select action, an array is output, and the elements in the array are object. 

    Like [ { "first": "Deon", "last": "Herb" }, { "first": "K", "last": "Herb" } ] 

    So you couldn't judge with body(‘HTTP’)?[Workload], and it will report an error because the array requires Integer index as a parameter.

    You could store the value of the selected Workload in an array, because Contains requires an array collection.

    Use Apply to each to store the value of Workload in an array.

    Finally determine whether the array contains a specified value.

    17.PNG

     

    Best Regards,

    Barry

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard