The Zurich release has arrived! Interested in new features and functionalities? Click here for more

🚀 How to compare Catalog Item Date Variable with Today’s Date in Flow (Without Custom Fields)

Amarnadh
Tera Contributor

Hi everyone,

I recently worked on a requirement where I had to compare a catalog item variable (date field) with today’s date inside Flow Designer.

Requirement:
I have a date variable in my catalog item called “Start Date”. When the start date matches the current date, a catalog task should be created automatically.

 

 Challenge

We can normally do this using the “Wait For Condition” activity.
 But the problem: we cannot directly pull catalog variables inside Wait for Condition.

Amarnadh_0-1756093853946.png

 

 Solution

1. Create a Custom Action

  • In the custom action, fetch the catalog item’s date variable and the system’s current date.

  • Return both values as outputs.

Example action script:

1. We have to create a custom action here to compare the start date with current date, it should throw output as the variable name and current date like below.

Amarnadh_1-1756094292177.png

2. Then utilize that action in the mail flow using "DO the following until" with some waiting period like 1 hour as it has to check till the start date matches with current date.

Amarnadh_2-1756094490456.png

3.If it date matches then we have to put the condition in "until" like here by getting start date and current date from the custom action. 

Amarnadh_3-1756094588805.png

 

4. Then use create task action.

 

 

1 REPLY 1

Mark Manders
Mega Patron

You can just create a date/time flow variable and set that to the catalog item variable. Then have the flow wait for the date/time of that flow variable.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark