cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (4,545)