web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Processing json object...
Power Automate
Answered

Processing json object in Power Automate create a new json object with specific data

(0) ShareShare
ReportReport
Posted on by 3

Hello community,

 

I am building a Power Automate that takes a json object as input - see below

 

 

 

[
	[
		"Row 1 ID value",
		"Row 1 Name value",
		"Row 1 link value",
		"Row 1 Comments value"
	],
	[
		"Row 2 ID value",
		"Row 2 Name value",
		"Row 2 link value",
		"Row 2 Comments value"
	],
	.
	.
	.
	[
		"Row n ID value",
		"Row n Name value",
		"Row n link value",
		"Row n Comments value"
	]
]

 

 

I need to process that input to get specific values "per row" say at positions 0 (which happens to have the row's ID value) and 2 (which happens to have the row's link value), so the output object would look like:

 

 

 

[
	[
		"Row 1 ID value",
		"Row 1 link value",
	],
	[
		"Row 2 ID value",
		"Row 2 link value",
	],
	.
	.
	.
	[
		"Row n ID value",
		"Row n link value",
	]
]

 

 

 In the real scenario, the input and output objects will have more "values per row", so I will need to hardcode the positions I am taking from the input to the output object.

 

Is there a simple way to achieve this?

Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @IPLO365 

     

    Here is the sample flow. Assuming the order of elements are same in each row element.

     

    I have stored input array in the compose action:

    ManishSolanki_0-1712301030164.png

    [
    [
    "Row 1 ID value",
    "Row 1 Name value",
    "Row 1 link value",
    "Row 1 Comments value"
    ],
    [
    "Row 2 ID value",
    "Row 2 Name value",
    "Row 2 link value",
    "Row 2 Comments value"
    ],
    [
    "Row n ID value",
    "Row n Name value",
    "Row n link value",
    "Row n Comments value"
    ]
    ]

     

    Next, add select action. Pass the output of compose action in 'From' parameter:

    ManishSolanki_1-1712301132819.png

    Click "Switch Map to text mode" button and enter an expression to get the desired output:

    ManishSolanki_3-1712301208899.png

    Below expression needs to be added in the expression box as shown below:

    ManishSolanki_4-1712301289504.png

    createArray(item()[0],item()[2])

    The output body of select action will give the required array.

     

    Output:

    ManishSolanki_5-1712301359518.png

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard