Trigger a task on a specific date (workflow)

Nawal
Mega Guru

Hello, 

I have to create this workflow, and the task Retrieve Hardware must be triggered on the date mentioned in item .

find_real_file.png

 

find_real_file.png

any idea how to do this?

Thank you 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Nawal 

From what I could get from your question

1) You want Catalog Task to be created on that date

Example: If date is 10th Jan 2021 so catalog task should be created on that day and your workflow should wait till that time

If yes then you can use Workflow Wait for Timer Activity with Script below

var gdt = new GlideDateTime(current.variables.Scheduled_retrieve_date);

answer = gs.dateDiff(new GlideDateTime(), gdt, true);

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

14 REPLIES 14

arielgritti
Mega Sage

Hi Nawal

What kind of task do you want to create?

Maybe creating a Flow in Flow Designer (triggered when you decide using some "criteria") over a table or a Catalog Item where the "Schedule retrieve date" (field or variable) is populated by the user you can create a task (task table, catalog task table, etc) using the create record action.

Feel free to give me more information about your Flow so I can help you

 

Please mark helpful or correct if I helped you
Thanks
Ariel

Hi Ariel, 

thank you for your reponse.

i have created a workflow which cover several paths, i did this with a swith.

For "Loan type" i have to configure the path i share above.

 find_real_file.png

 

Ok, if you are using workflow you can create a Catalog Task with the "Create catalog task" action and populate the values of the fields from the Catalog Item variables in the script section.

Ariel

DirkRedeker
Mega Sage

Hi

You can create a Task with the "Create Catalog Task" WF Activity.

Set the Due Date of the Task to the value of your variable then.

 

find_real_file.png

 

Let me know if that answers your question and mark my answer as correct and helpful.

BR

Dirk