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

Community site session details

Session Id :
Power Automate - Building Flows
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

 

 

 

 

 

 

 

 

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 555 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 388 Moderator

#3
chiaraalina Profile Picture

chiaraalina 264

Last 30 days Overall leaderboard