cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
eraarup
Level: Powered On

Filtering Dynamics 365 data based on date field using function

All --

 

I'm working on a flow to identify records from Dynamics 365 that have an estimated close date that is before todays date but am running into issues when trying to use the now() function.  The error message I receive is that the now function isn't supported.  

 

Is anyone aware of a different method to filter a date time field based on current date?

 

Thanks,

Eric 

 

Capture.PNG

 

 

1 REPLY 1
Community Support Team
Community Support Team

Re: Filtering Dynamics 365 data based on date field using function

Hi @eraarup,

 

Try this and see if it would help:

 

In addition to use the Filter Query, we may also work with the Filter Arrary Action:

Under the condition, copy and paste the following formula:

@greaterorequals(
            formatDateTime(item()?['estimatedclosedate'], 'yyyymmddHHss'),
            utcnow('yyyymmddHHss')
            )

 

 11.PNG

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 464 members 6,036 guests
Please welcome our newest community members: