cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JoeO
Helper II
Helper II

Find Json path

Im looking for a method to locate a Json path based on text and without knowing the array integer. In the example below, im looking for the "end data" in the "AssetEntitlementData", if the "ServiceLevelDescription" text contains "Onsite Service After Remote Diagnosis". As you can see below, i have 5 arrays in the "AssetEntitlementData" path, but only 1 would match the above mentioned condition.

 

JSON Path Finder.png

4 REPLIES 4
JoeO
Helper II
Helper II

I would just have to perform a ForEach to loop through all and find the match (though i wish Flow had expression functionality to locate an element within at array based on text inside the item). Problem is though, i just realized that will actually have a few matches. Is it possible to have flow stop the ForEach as the first match?

Hi @JoeO ,

I am afraid that there is no way to achieve your needs in Microsoft Flow currently.

There is no action to return the index of an array.

If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

Best Regards,

Community Support Team _ Zhongys

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

Thanks.

 

I actually found a solution, im just setting an initialized variable on the first math so that the reaming items in the ForEach will never match.

 

Hi @JoeO ,

I am glad to hear that your issue was successfully resolved.

If there is anything else we can do for you, please feel free to post in the forum.

Best Regards,

Community Support Team _ Zhongys

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,982)