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 / Convert Array of Objec...
Power Automate
Unanswered

Convert Array of Objects to Object of Objects

(0) ShareShare
ReportReport
Posted on by 10
Hello,
I need help with this.
I see a lot of applications are suppling array of objects with a key inside the object. 
It is imposable to know the position of the object I'm looking for in the array.
When I want to use those objects further, I always use filter array actions based on those keys.
Sometimes I have to use lots of fitter array actions in order to get to all the objects I need.
 
For example 
DocuSign supplies an array of objects each tab filed is a separate object in the array. 
SmartSheet supplies an array of objects each cell in a row is a separate object.
 
I wander if there is a way to manipulate those arrays of objects into an object of objects and set those keys inside the object to the key to the object instead of having same just as a number in an array.
 
That way it will be supper easy to delegate through the output object and use in for input in further steps.
 
 
 
Current Output Array of Objects
{
    "body":{
        "recipientTabs":[
            {
                "name":"SignHere",
                "tabType":"signhere",
                "tabLabel":"Signature",
                "documentId":"1",
                "tabId":"1327bc1c3-4a14-4508-ab76-ae2fc85d04aa",
                "recipientId":"1"
            },
            {
                "name":"Test",
                "tabType":"Text",
                "tabLabel":"Test",
                "documentId":"1",
                "tabId":"42esf022-cc983-462a-8553-27e8383f3ac8",
                "recipientId":"1"
            }
        ]
    }
}

Desired Output Object of Objects

 

{
    "body": {
        "recipientTabs": {
            "1327bc1c3-4a14-4508-ab76-ae2fc85d04aa": {
                "name": "SignHere",
                "tabType": "signhere",
                "tabLabel": "Signature",
                "documentId": "1",
                "tabId": "1327bc1c3-4a14-4508-ab76-ae2fc85d04aa",
                "recipientId": "1"
            },
            "42esf022-cc983-462a-8553-27e8383f3ac8": {
                "name": "Test",
                "tabType": "Text",
                "tabLabel": "Test",
                "documentId": "1",
                "tabId": "42esf022-cc983-462a-8553-27e8383f3ac8",
                "recipientId": "1"
            }
        }
    }
}

 Thank you

 

 

 

 

 

 

 

 

Categories:
I have the same question (0)

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard