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 / Using JSON with Dynami...
Power Automate
Unanswered

Using JSON with Dynamic Keys

(0) ShareShare
ReportReport
Posted on by

I'm stuck...any help would be greatly appreciated!

 

I'm getting data from an API that uses dynamic keys, I just need to post the records into a table in Dataverse but I can't get it into an array so I can use an apply to each.

 

Example of the data attached.

Categories:
I have the same question (0)
  • TYL Profile Picture
    1,091 Super User 2024 Season 2 on at

    @JeremyGibbs You can use the "parse JSON" action to parse your API output. Afterwards you can use the values that are within the API output as variables. One of them should be your array that you are seeking for. Put this array in a for each and define what you want to do with each item. I assume you want to write to a Dataverse table, so set that as an action in the "for each".

  • TYL Profile Picture
    1,091 Super User 2024 Season 2 on at

    @JeremyGibbs  If you are using a custom connector, you can define the response by providing an example output. Simply copy the output you get from the API and the custom connector functionality will identify the possible variables. Again, this is just when u use custom connector. If you use the http request function, then you can consider this suggestion not given 😁!

  • JeremyGibbs Profile Picture
    on at

    The issue is the dynamic keys though, if I manually select body('Parse_JSON')?['350544503560933'] for example, I get the array I need but the key won't always be the same.

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard