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 / Help with Send HTTP Re...
Power Automate
Unanswered

Help with Send HTTP Request and Condition returning False and not sending email.

(0) ShareShare
ReportReport
Posted on by 4
Hello 

I have been working on a Flow the past couple of weeks to Search through Email addresses on our orgs office 365 accounts and reporting back with what accounts have how many unread emails and what a preview of 1 of them Looks like. However lately I have run into an issue I cant solve. So far the Flow Recur's at the end of every day. It initializes a variable to count all the unread emails in an Account, Then sends an HTTP Request. This request then searches through a condition,  so when it finds an email with an empty Body it does not error out and fail. however that condition Always Turns up False and it does not proceed. The default number of emails Send HTTP request sends is 100 so do all 100 have no Bodys?


 
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at
     
    Can you share the code view of the Send an HTTP request and condition 1 action? Or share a screenshot of the configuration of the flow.
     
    This will help us troubleshoot why the Condition one goes to the False branche.
     
     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel
  • BA-03031900-0 Profile Picture
    4 on at
    Hello 

    @Expiscornovus Yes I Attached a screen shot to the Post near the bottom, so you have an idea of what the Flow looks like here is a View of the Code. 

     
     
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at
     
    Can you also share the expression in the Condition 1 action. What did you use on the left side? I see it begins with not()
     
    Just to double check, are you not missing the messages part of the URI? I assume you want to retrieve messages from the inbox mailfolder?
     
    https://graph.microsoft.com/v1.0/users/<emailaddress>/mailFolders/inbox/messages
     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel
  • BA-03031900-0 Profile Picture
    4 on at
    @Expiscornovus Hello I have Recently changed the Extra condition as I though it was Pulling things other then emails. now that im specifying emails it no longer needs the condition that was Not(emptyBody). 
     
    The new condition is Receiveddatetime is equal to addhours(utcnow() ,-23)

     
    However That condition is now returning back False. However I know there are 5 emails in the imbox unread as its a test email. 
     
  • David_MA Profile Picture
    12,966 Super User 2025 Season 2 on at
    I don't understand what you mean by, "The default number of emails Send HTTP request sends is 100 so do all 100 have no Bodys?" However, I think you are suggesting that when you send the HTTP request you only ever get back 100 results? If so, that is the default number of items returned in a Graph API request. You need to specify it in your request to return more, and depending on how many items there are, you may need to enable paging. You can learn about that at Paging Microsoft Graph data in your app - Microsoft Graph | Microsoft Learn.
     
    I cannot offer guidance on setting up paging, as I have only done it a couple times and it was a little tricky. I would need to refresh my memory on how to do it again. But hopefully this points you in the right direction so you can post a question about configuring and processing paging.

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard