Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

SCTASK Needs to trigger prior to selected date in the form.

Arun_Manoj
Mega Sage

Hi ,

 

I have a requirement to trigger a SCTASK using Workflow. There certain conditions to trigger the task using workflow.

- SCTASK needs to trigger prior to the selected date in the form.

 

Example:

In Request form 

  End date : 29 DEC 2024

then the SCTASK Needs to trigger 3 days prior to the End date means on 26 DEC 2024. Using the workflow only. Please help me to sort out the issue.

 

 

Thanks'

Arun Manoj

 

 

1 ACCEPTED SOLUTION

Najmuddin Mohd
Mega Sage

Hi @Arun_Manoj ,

There is field call due_date in RITM record, You can get the value from the from and decrease three days and assign it to due_date.
Now, wait the workflow till the due date and create sc_task.

NajmuddinMohd_0-1732783764670.png


variable_name is the backend name of the End date.

Next, use the timer to stop and select the due date field.

NajmuddinMohd_3-1732783945616.png

 



Next, create a Catalog task.

NajmuddinMohd_2-1732783923848.png

If the above information helps you , Kindly mark it as Helpful and Accept the solution.
Regards,

Najmuddin.

 

View solution in original post

2 REPLIES 2

Najmuddin Mohd
Mega Sage

Hi @Arun_Manoj ,

There is field call due_date in RITM record, You can get the value from the from and decrease three days and assign it to due_date.
Now, wait the workflow till the due date and create sc_task.

NajmuddinMohd_0-1732783764670.png


variable_name is the backend name of the End date.

Next, use the timer to stop and select the due date field.

NajmuddinMohd_3-1732783945616.png

 



Next, create a Catalog task.

NajmuddinMohd_2-1732783923848.png

If the above information helps you , Kindly mark it as Helpful and Accept the solution.
Regards,

Najmuddin.

 

Arun_Manoj
Mega Sage

Hi @Najmuddin Mohd ,

 

Thanks for the Solution🙂