cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jacktherip
Frequent Visitor

UK date format

Hi i am trying to get a flow to look at yesterdays list items.

 

i have a filter query that is:

Created ge 'addDays(utcNow('yyyy-MM-dd'),-1,'yyyy-MM-dd')'

 

but i get the error

The expression "Created ge 'addDays(utcNow('yyyy-MM-dd'),-1,'yyyy-MM-dd')'" is not valid. Creating query failed.

 

I think it is because my date is in the UK format

 

 

5/31/2022 4:56 PM

So i tried

Created eq 'addDays(utcNow(),-1,'MM-dd-yyyy')

it just doesnt want to filter.

 

Thank you for your help

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
RobElliott
Super User
Super User

@jacktherip can I check that you are not just typing the expression into the Filter Query field? It must be done from the Expression tab of the dynamic content box and be inside single quotes.

 

filterQuery5.png

 

 

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

View solution in original post

2 REPLIES 2
RobElliott
Super User
Super User

@jacktherip can I check that you are not just typing the expression into the Filter Query field? It must be done from the Expression tab of the dynamic content box and be inside single quotes.

 

filterQuery5.png

 

 

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

jacktherip
Frequent Visitor

Hi

Thank you

I think it was being caused by this weird way i enabled to do filters causing my issue

 

it shows as blank but the expression is in there really. as it was blank i was clicking the two arrows and that wasnt working out for me.  back on track now.  thank you

jacktherip_1-1654604892266.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,849)