Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Null output from Send an HTTP request

(0) ShareShare
ReportReport
Posted on by 1,934 Super User 2025 Season 1

@Expiscornovus Following on from my previous issue (https://powerusers.microsoft.com/t5/Building-Flows/Search-for-job-title/m-p/1495842) where you helped me tremendously, now I am trying to get the email address from the resulting output. Instead it is returning a Null even though it can be seen clearly that it is extracting the email address.

annetoal_0-1646932092319.png

In Send an HTTP request, this is the string:

https://graph.microsoft.com/v1.0/users/?$select=mail&$filter=jobTitle eq 'ACIO'

The Parse JSON step produces this output

{
 "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(mail)",
 "value": [
 {
 "mail": "user@domain.edu"
 }
 ]
}

Where user@domain.edu is actually the correct email address I want.

The Apply to each is 

annetoal_4-1646932512340.png

And Set variable is setting the value in 

items('Apply_to_each_3')?['mail']

but this is coming up as Null.

Please help, what do I have to do to get the email address into the variable?

 

Thanks,

Anne

  • annetoal Profile Picture
    1,934 Super User 2025 Season 1 on at
    Re: Null output from Send an HTTP request

    Thanks! I've got my version working using the apply each loop now. I had to add a couple of steps involving parsing JSON, it's not very sophisticated but it works. Your solution is more elegant than mine so I will try it later and report back with results.

  • Verified answer
    Expiscornovus Profile Picture
    32,155 Most Valuable Professional on at
    Re: Null output from Send an HTTP request

    Hi @annetoal,

     

    I assume you are only expecting one result? If that is the case, a parse json and a loop would not be needed.

     

    In that case an expression which retrieves the mail property value of the first item is sufficient.

     

    Below is an example of that approach.

     

    Use the set variable directly after the Send an HTTP request action and use this expression:

     

     

    body('Send_an_HTTP_request:_ACIO')['value'][0]['mail']

     

     

     

    director_one.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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1