cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DLGross
Level 8

Creating condition from attributes in HTTP Get Body

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

 

 

 

 

 

Dean Gross

Office 365- MSCA
SharePoint - MCSE
Microsoft 365 Enterprise Administrator Expert
1 REPLY 1
Highlighted
Community Support Team
Community Support Team

Re: Creating condition from attributes in HTTP Get Body

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

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,737)