Generate a catalog task based on a specific variable date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 12:20 AM
I have a catalog item that has a variable that is a date and time field named Termination Date
many tasks will be created after the form is submitted but there is a task named final day i want that task to be created on the date that has been given in the field named Termination Date
How to achieve this we are using Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 01:02 AM
Hi Basava,
What you can do is to have a Timer activity and have the 'Timer based on' 'Script'.
Script will be something like:
answer = 0;
var gdt = new GlideDateTime();
//date is the field name of the Date variable
gdt.setDisplayValue(current.variable_pool.date.getDisplayValue());
var start = gdt.getNumericValue();
var currentDate = new GlideDateTime();
var currentSeconds = currentDate.getNumericValue();
answer = ((start - currentSeconds)/1000);
So, now the Timer will wait till that date and then Workflow will create the Catalog Task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 01:11 AM
HI @BasavaK ,
There is a OOB Field Due date of RITM, in your flow you can map the Termination date to Due date and Use Timer to wait the flow until due date.
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.