cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dmahaffey
New Member

Get an array of object IDs returned from REST

I get the following from a REST API call:

 

 

{
  "assignments": {
    "6c494931-6457-4faa-b893-7d7e985c9cc4": [
      19198153
    ],
    "9debce1c-c1a7-4742-80b6-e0e1e5cb3eec": [
      15405429,
      17840990,
      18936163
    ],
    "35f18ad1-d411-44b4-a211-8c7045d287f4": [
      17840990,
      19402036,
      22092514,
      20649120
    ]
  }
}

 

 

Each query returns an "assignments" object containing a variable number of unique object IDs (these are user IDs) and a variable number of integers in an array (these are file IDs) assigned to each user.

 

I need to count the number of user IDs, the number of file IDs for each user, and the number of file IDs for the set of users, but because the user IDs are objects, I can't figure out how to parse/select/loop the data to get the structure I need. I'd welcome any suggestions.

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,672)