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

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
Community Support

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (8,209)