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 / Add Object to Json Array
Power Automate
Unanswered

Add Object to Json Array

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have some json like this

 

{

   "People":[{"LastName":"Smith", "FirstName":"Tim"}]

}

 

In Power Automate how do I add a new object to the People Array.  I just can't figure this out.

Categories:
I have the same question (0)
  • PrasadAthalye Profile Picture
    on at

    You can use Parse JSON and it will give you a People array... You can click Generate from schema and provide this JSON so that it generates schema

     

    PrasadAthalye_0-1613697368974.png

     

  • KS-04101812-0 Profile Picture
    Microsoft Employee on at

    I know how to get the People Array.  What I am having difficulty with is adding an object to this array and updating the json to have this new object.  In my example, I have one element in the People array. I want to add another element so I have two elements in the People Array.

  • Verified answer
    PrasadAthalye Profile Picture
    on at

    My apologies. Can you please check if following steps work for you?

     

    1. Declare Array variable and assign People array to it.
    2. Use Append to Array variable and append the element.
    3. Use Compose on array variable and output will show you array with a new element.

    PrasadAthalye_0-1613751659296.pngPrasadAthalye_1-1613751711413.png

     

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