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 / 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,183 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

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 506 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard