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 / BadRequest Status Code...
Power Automate
Answered

BadRequest Status Code 400

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm recieving a weird 400 status when I try and filter a get items request dynamically. I'm trying to return Items that were created yesterday to email them to the appropriate parties, but I keep recieving a 400 status when I add the utcNow() function into the Filter query line of the get items. Here's the wierd part, if I write in the date (ie: '2019-01-01') the filter works fine,but when I use the utc it fails.  I've tried several version, one defining a string variable, one using the compose(as seen below) and one putting the utcNow() function directly into the filter query line.Any help would be greatly appreciatted.

 

Here is the flow:

Capture.PNG
Here is the Error:

Capture.PNG

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Anonymous 

    Try putting single quotes around the Output in the filter query.

    SingleQuote.jpg

     

    Also, to compare the dates, maybe you'll want to try the following expression:

    formatDateTime(UTCNow(), 'yyyy-MM-dd')

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @ScottShearer  Thanks for the second set of eyes. It workeed perfectly.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard