Catalog task to "On hold"

Thomas98
Tera Expert

Hi....

I have a catalog item "Delete user"  and there is variable " Date_of_deletion"

I want to make the state of the CTASK automatically go to "On hold" when the request is submitted and turn into "In progress" on the date of deletion.

Can you help me with the workflow script for this?

4 REPLIES 4

Murthy Ch
Giga Sage

@Thomas

How many tasks are getting created for this Item?

If it is only one we can do this easily where you can use one wait for condition for comparing with date of deletion and one run script to update the state of the task.

 

Thanks,

Murthy

Thanks,
Murthy

Hi Murthy,

 

Just one. I'm also okay with delaying the task creation. Create the task when the date of deletion is current date.  

Hi Thomas,

Then i think no code required here if it has only one task.

Create one wait for conditon(this will wait till Date_of_deletion reaches the current date) after then create task activity.

See below screenshots for reference:

find_real_file.png

Ex:

 

Hope it helps

 

Thanks

Murthy

Thanks,
Murthy

Gaurav Shirsat
Mega Sage

Hello Thomas

as per your latest reply to Murthy, 

"Just one. I'm also okay with delaying the task creation. Create the task when the date of deletion is current date."

as suggested by Murthy, Create one wait for condition activity.

after that use catalog task activity. you can set your catalog task as per below screenshot.

find_real_file.png

Mark my Response as Correct or Helpful, if you find it Appropriate.
Gaurav Shirsat : ServiceNow Community MVP 2022
https://www.linkedin.com/in/gauravshirsat/