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

BadRequest Status Code 400

(0) ShareShare
ReportReport
Posted on by

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)
  • Community Power Platform Member Profile Picture
    on at

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

  • Verified answer
    ScottShearer Profile Picture
    25,270 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')

     

     

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
David_MA Profile Picture

David_MA 262 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 211 Most Valuable Professional

#3
trice602 Profile Picture

trice602 198 Super User 2025 Season 2

Last 30 days Overall leaderboard