I have create record triggered flow in which i need to filter the records based on the below conditions
Status is equal to Done and Completion Date is lesser than TODAY.
I am not able to obtain this in my flow, Please help me out !
For record-triggered Flows, you cannot achieve such a filter so simply. You have 2 options:
Create a custom Boolean formula field on the SObject in question like Completion Date < TODAY()
which would be set/reset for each record update. You can then check this conditional value in your Flow start condition i.e is custom Boolean formula field Equals true
.
Use a single filter in your start condition (Status is equal to Done
) and immediately after Flow start, add a condition block with the Completion Date less than {!$Flow.CurrentDate}
.
Both options should be reviewed from a transactional POV on your behalf to see best fit.
You can just simply create a formula field with return type checkbox, put in the condition - Completion Date < TODAY() and use this field in the flow with condition is equal to true.
{!$Flow.CurrentDate}
as the condition value?