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 / How to iterate through...
Power Automate
Unanswered

How to iterate through JsonAsCustomObject?

(0) ShareShare
ReportReport
Posted on by 357
Spoiler (Highlight to read)
 
 

Hi Team,
I want to iterate through Json file to access specific json data 
please help me how I will.

this my json data

 

I want to access specific data by using their number n

Sanket1_1-1718029610294.png

 

 

  •  
I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @Sanket1 

     

    Please follow the below approach using specify number or even you can for each as well

    Deenuji_1-1718036122526.png

     

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    If you open the Custom object and select More

    eetuRobo_2-1718036665398.png

     

    You can see that the indexing is like that JsonAsCustomObject['1']. So its a string number

    eetuRobo_3-1718036690435.png

     

    Then you use the Name value of which row you want. So in my pic example if I want the firstname: %JsonAsCustomObject['1'].FirstName%

    eetuRobo_6-1718037024403.png


    And if you want to loop through it:

    eetuRobo_5-1718036913196.png

     

  • Sanket1 Profile Picture
    357 on at

    I tried your approach but I am getting this error

    Sanket1_0-1718039078601.png

     

    Sanket1_1-1718039112847.png

     

  • Sanket1 Profile Picture
    357 on at

    I want to make it dynamic

    some has data, some has tables and key-value

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    So the CustomObject is not structured so that all the items are similar structure but some are strings and some tables? Could you maybe show how it looks? Would be easier to help out. If there is sensitive data just change it to something else.

  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @Sanket1 

     

    Please share screenshot like below to understand your custom object format (After hiding all sensitive info).

    Deenuji_0-1718075343936.png

    Deenuji_1-1718075381493.png

     

     

     

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Verified answer
    VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at

    Hi @Sanket1 ,

     

    Why do you want to loop the JsonAsCustomObject.

    You can directly call which ever Item you want and where ever you want or its required as shown in below image.

     

    ConfigorJsonasCustomObject Image:

     

    VishnuReddy1997_0-1718080875359.png

    How to call CustomObject in the flow image;

     

    VishnuReddy1997_1-1718080971294.png

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard