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 / Processing json object...
Power Automate
Unanswered

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
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 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

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