cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gmeunier
Frequent Visitor

graph user, convert the output from object to array yo loop

Hi everyone,

 

I am calling the AD user list through the HTTP action.

The output is an object.

I parse it to JSON to have it as an array so that I can loop through the results.

Unfortunately, I am not managing to get an array.

 

That is the original flow before tempting to apply any type of solution.

 

The HTTP action in which I am calling extension attributes

gmeunier_0-1615814907632.png

 

The Parse JSON action with the schema generated from the prior output

gmeunier_1-1615814985338.png

 

The full schema below

 

 

 

{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "displayName": {
            "type": "string"
        },
        "onPremisesExtensionAttributes": {
            "type": "object",
            "properties": {
                "extensionAttribute1": {
                    "type": "string"
                },
                "extensionAttribute2": {},
                "extensionAttribute3": {},
                "extensionAttribute4": {},
                "extensionAttribute5": {},
                "extensionAttribute6": {},
                "extensionAttribute7": {},
                "extensionAttribute8": {},
                "extensionAttribute9": {},
                "extensionAttribute10": {},
                "extensionAttribute11": {},
                "extensionAttribute12": {},
                "extensionAttribute13": {},
                "extensionAttribute14": {},
                "extensionAttribute15": {}
            }
        }
    }
}

 

 

 

How to transform this to be able to loop on the results ?

 

Many thanks for your help,

 

Gerald

1 ACCEPTED SOLUTION

Accepted Solutions
gmeunier
Frequent Visitor

I found out

 

gmeunier_0-1615816171931.png

 

in order to get the value item above :

in the Parse JSON action instead of providing just a sample, provide the full output if the http action to generate the schema

 

View solution in original post

2 REPLIES 2
gmeunier
Frequent Visitor

I found out

 

gmeunier_0-1615816171931.png

 

in order to get the value item above :

in the Parse JSON action instead of providing just a sample, provide the full output if the http action to generate the schema

 

alrez
Community Support
Community Support

Hi,

 

Thanks for your follow up post! I am glad that you were able to get this figured out. Hopefully this will prove useful to future communities users in the future who are having similar issues.

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,706)