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

Community site session details

Session Id : Mn0Mw1DsReNpgkipvOc1Dc
Power Automate - Building Flows
Answered

Null output from Send an HTTP request

Like (0) ShareShare
ReportReport
Posted on 10 Mar 2022 17:17:13 by 1,934 Moderator

@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

I have the same question (0)
  • annetoal Profile Picture
    1,934 Moderator on 10 Mar 2022 at 22:33:58
    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,245 Most Valuable Professional on 10 Mar 2022 at 19:45:25
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 954 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 650 Moderator

#3
trice602 Profile Picture

trice602 327 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete