Hi All,
I am trying to get azure ad user properties using "Invoke an HTTP request".
If the field/property has value then returning the field with value is fine, but the field/property is blank/null connector is not returning the column itself and returns an error saying that the column does not exist.
but in Explorer, it returns null. in power automate "Invoke an HTTP request" connector is not returning any null or blank. it returns an error.

from power automate

if you observe from the error screenshot, the company name field itself does not exist as it says.
first of all the "Invoke an HTTP request" itself does not return the Company Name field
here is the connector API Query
https://graph.microsoft.com/v1.0/users/88e356d7-fca8-4124-90b6?$select=displayName,mail,userPrincipalName,companyName
here is the response to the above REST API connector it self Company name is excluding because of user property company name is blank/null, if value exist then its returning as expected
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(displayName,mail,userPrincipalName,companyName/$entity",
"displayName": "sample",
"mail": "sample@outlook.com",
"userPrincipalName": "sample",
"id": "88e356d7-fca8-4124-90b6",
}
In fact, if we try for another user who has the value from the backend then it gets the company name itself.
how to get field value even if it is blank and assign to Select action. because only a few users do not have the Company Name values.
any help here, please