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 / Null output from Send ...
Power Automate
Answered

Null output from Send an HTTP request

(0) ShareShare
ReportReport
Posted on 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

Categories:
  • Verified answer
    Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at

    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

  • annetoal Profile Picture
    1,934 Moderator on at

    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.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 335 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard