- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 10:15 PM
We'd like to include a Catalog Task in our workflow. The unique feature is that we want to create Catalog Task on a specific day (this date will be derived from the catalog variable), therefore the workflow should pause and wait till the current day matches the date on the catalog variable.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 11:51 PM
Hi @Community Alums ,
you can use a timer before creating that catalog task and in that timer you can write a script which I mention below,
var date = current.variables.datefield.getDisplayValue(); //your date variable
var duration = gs.dateDiff(gs.nowDateTime(), date, true);
answer = duration;
Note: Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me.
Regards,
Deborah Brown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 10:31 PM
@Community Alums Please follow the below steps on the link,
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 11:51 PM
Hi @Community Alums ,
you can use a timer before creating that catalog task and in that timer you can write a script which I mention below,
var date = current.variables.datefield.getDisplayValue(); //your date variable
var duration = gs.dateDiff(gs.nowDateTime(), date, true);
answer = duration;
Note: Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me.
Regards,
Deborah Brown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 01:02 AM
Hello @Deborah Brown L
Thank you for the Solution. The solution worked but there is one issue with that.
For Example: I have selected date as 6th April 2024 , then task need to be created on 6th April but with above script the task creation date is 5th April 2024 11:59:59 .Can you please help us here to solve this.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2024 08:11 PM
@Community Alums ,
You can just add an extra day.
var date = current.variables.datefield.getDisplayValue(); //your date variable
var duration = gs.dateDiff(gs.nowDateTime(), date, true);
duration.addDays(1);
answer = duration;
Note: Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me.
Regards,
Deborah Brown