🚀 How to compare Catalog Item Date Variable with Today’s Date in Flow (Without Custom Fields)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
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.
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.
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.
4. Then use create task action.
- 269 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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