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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / BadRequest: Flow to do...
Power Automate
Unanswered

BadRequest: Flow to download, parse and save Graph API users data

(0) ShareShare
ReportReport
Posted on by 2

I have a flow that grabs the users from the Graph API each day - at first i was having issues with the data types and so removed the businessPhone section as this wasn't needed. The flow then proceeded past the the Parse Json and on to the Create CSV Table where i get the following error.

 

BadRequest

The 'from' property value in the 'table' action inputs is of type 'Null'. The value must be of type 'Array'.

Now delving into it a little more i can see (example below) is that businessPhone is still there and is an array, it doesn't seem that it can write this to the CSV folder. I'm a little unsure about how to get around this (i don't need the data in businessPhone)?
 
{
                "businessPhones": [],
                "displayName": "XXXXXXXXXXX, XXXXXXXXXX",
                "givenName": null,
                "jobTitle": null,
                "mail": "XXXXXXXXXXXXXXXXXxm@XXXXXXXXXXXX",
                "mobilePhone": null,
                "officeLocation": null,
                "preferredLanguage": null,
                "surname": null,
                "userPrincipalName": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                "id": "88ac04c2-c1bf-454b-8f57-f259b0XXXXX"
            },
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,768 Most Valuable Professional on at

    Hi @nathant,

     

    A parse json would not be necessary in this case. You could use the value property of the outputs of your HTTP request directly in the Create CSV Table. In addition to that you can also use a $select query parameter to only retrieve certain fields (and for example ignore the businessPhones field, if you don't want to retrieve this).

     

    Below is an example

     

    1. The Graph API URI with a $select

    https://graph.microsoft.com/v1.0/users?$select=displayName,mail,id

     

    2. The outputs with an expression directly in the Create CSV table action

    outputs('HTTP')?['body']['value']

     

    selectqueryparameter.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard