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 / Apply to each in array...
Power Automate
Unanswered

Apply to each in array - extract key/values

(1) ShareShare
ReportReport
Posted on by 2,295
In Power Automate, I get the following object out of a Parse JSON action:
 
{
    "body": {
        "order_id": "ORD-20250221-001",
        "order_date": "2025-02-21",
        "order_total": 1349.98,
        "payment_method": "Credit Card",
        "order_status": "Processing",
        "estimated_delivery_date": "2025-02-25",
        "shipping_carrier": "FastExpress",
        "tracking_number": "FAST123456789US"
    }
}
 

The number of items in this object is variable.

 

I want an array that I can loop in an apply to each and extract each key/value.

 

I've managed to convert the JSON into an array with a compose:

 
replace(replace(string(body('Parse_JSON')),'{','['),'}',']')
 

And:

 
split(outputs('Compose'),',')
 
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
    Hi
     
    I am not sure what you are asking help with, Thank you for sharing your flow, but whgich part are you stuck on?
     
    Are you turning it into an Array? 
  • WebPortal Profile Picture
    2,295 on at
    @FLMike,
     
    I'd like an apply to each on the array:
    Add a new row per item on a Dataverse table.
    Column A: key
    Column B: value

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard