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 / Struggling to Export D...
Power Automate
Unanswered

Struggling to Export Data from "Get HTTP Request" to CSV

(0) ShareShare
ReportReport
Posted on by 11

So I have a GrapAPI call set up and working, using "Send an HTTP Request".  This works and provides results.

 

I have Parse JSON after that, and the schema is from the results of "Send an HTTP Request"

Parse JSON works as expected, and I can get it to run result.  But I can't find the way to get the results from Parse JSON to a CSV.  There results are always empty. 

 

ReturnOfTheyeti_0-1712244255214.png

 

I am probably missing something very obvious.  Currently I am getting an error in the Apply to Each.. I think I have been staring at this too long

ReturnOfTheyeti_2-1712245415720.png

 

I'd appreciate if someone was able to point me in the correct direction  - I want to make this work, but I can't figure out how to get the JSON outputted to CSV.  I don't know the right questions to ask. 


Thanks,  

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @CactusJ 

     

    You could directly pass the value array from the output of "Parse Json" action to create csv table action:

    ManishSolanki_1-1712248213800.png

     

     

    Output:

    ManishSolanki_2-1712248265181.png

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • CactusJ Profile Picture
    11 on at

    Thanks, 

     

    Currently Getting:  

    CactusJ_0-1712248580327.png



    CactusJ_1-1712248609784.png


    I really appreciate the help..

  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Pls try with the below schema in parse json action:

     

    {
        "type""object",
        "properties": {
            "statusCode": {
                "type""integer"
            },
            "headers": {
                "type""object",
                "properties": {
                    "Cache-Control": {
                        "type""string"
                    },
                    "Transfer-Encoding": {
                        "type""string"
                    },
                    "Vary": {
                        "type""string"
                    },
                    "Strict-Transport-Security": {
                        "type""string"
                    },
                    "request-id": {
                        "type""string"
                    },
                    "client-request-id": {
                        "type""string"
                    },
                    "x-ms-ags-diagnostic": {
                        "type""string"
                    },
                    "x-ms-resource-unit": {
                        "type""string"
                    },
                    "OData-Version": {
                        "type""string"
                    },
                    "Timing-Allow-Origin": {
                        "type""string"
                    },
                    "x-ms-apihub-cached-response": {
                        "type""string"
                    },
                    "x-ms-apihub-obo": {
                        "type""string"
                    },
                    "Date": {
                        "type""string"
                    },
                    "Content-Type": {
                        "type""string"
                    },
                    "Content-Length": {
                        "type""string"
                    }
                }
            },
            "body": {
                "type""object",
                "properties": {
                    "@@odata.context": {
                        "type""string"
                    },
                    "value": {
                        "type""array",
                        "items": {
                            "type""object",
                            "properties": {
                                "businessPhones": {
                                    "type""array",
                                    "items": {
                                        "type""string"
                                    }
                                },
                                "displayName": {
                                    "type""string"
                                },
                                "givenName": {
                                    "type""string"
                                },
                                "jobTitle": {
                                    "type""string"
                                },
                                "mail": {
                                    "type""string"
                                },
                                "mobilePhone": {},
                                "officeLocation": {
                                    "type""string"
                                },
                                "preferredLanguage": {
                                    "type""string"
                                },
                                "surname": {
                                    "type""string"
                                },
                                "userPrincipalName": {
                                    "type""string"
                                },
                                "id": {
                                    "type""string"
                                }
                            },
                            "required": [
                                "businessPhones",
                                "displayName",
                                "givenName",
                                "jobTitle",
                                "mail",
                                "mobilePhone",
                                "officeLocation",
                                "preferredLanguage",
                                "surname",
                                "userPrincipalName",
                                "id"
                            ]
                        }
                    }
                }
            }
        }
    }
     
     
    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
     
  • CactusJ Profile Picture
    11 on at

    Same issue..

    CactusJ_0-1712250152005.png

     

    Is this because BusisnessPhones is an Array?  Or because some of the values are null ?

  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Pls verify if "Send an HTTP request" is returning users data from the graph api. It looks like value array is null or empty.

     

    Also verify the value object by hovering mouse over it:

    ManishSolanki_0-1712250529470.png

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • CactusJ Profile Picture
    11 on at

    Data is  for sure being returned.. you can see the results from Parse JSON in my very first screenshot... I just blacked out the user names and other info...  

     

    CactusJ_3-1712251004372.png

     

    CactusJ_0-1712250731228.pngCactusJ_1-1712250749428.png


    Here is the HTTP Request:

    CactusJ_2-1712250795274.png

     

    https://graph.microsoft.com/v1.0/users?$filter=employeeid ne null and accountEnabled ne false&$count=true 

     

     

    Thanks for looking at this with me, I am stumped as to why this is so difficult. 

     

    CactusJ_4-1712251022559.png

     

  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Pls use the below expression in 'From' parameter of "Create CSV table". Expression needs to be added in the expression box:

    ManishSolanki_0-1712251894424.png

    body('Parse_JSON')?['value']

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • CactusJ Profile Picture
    11 on at

    Holy Heck  Batman, it worked 

     

     

    What did I learn from this ?  my "value" was wrong?  Why ?

     

    Thank you very much.

  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    The value from dynamic content was incorrect. Alternatively, we can enter the value object in the form of expression. So, the expression worked.

     

    I am glad it solves your problem 🙂

     

    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