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.

Set catalog task due date to empty from workflow

Oliver Anderson
Kilo Sage

I have a catalog item on the sc_req_item table that only has a catalog task workflow activity. I want to generate the task with an empty due date. No matter what I try, it is currently setting the due date to the current time.

 

Here's what I've tried so far:

1. Setting the schedule on the catalog task activity to 0 days 0 hours 0 minutes 0 seconds

2. Setting the schedule via script where answer = null;

3. Setting the task.due_date = ''; in the advanced script on the catalog task activity

4. Setting the task.due_date = null; in the advanced script on the catalog task activity

5. Changing the CatalogTaskGeneration script includes to not set the due date from the parent RITM

6. Creating a before/insert business rule on sc_task with the following line: current.due_date = null;

7. Creating an after/insert business rule on sc_task with the following line: current.due_date = null;

 

Any ideas? I am able to successfully set the due date to a future date using these methods, but no matter what I try to get the field to be empty, something is populating the current date/time.

6 REPLIES 6

Harsh_Deep
Giga Sage
Giga Sage

Hello @Oliver Anderson 

 

Please check BR on the sc_task table and check for the due_date.

It will resolve your query.

 

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.

Thanks

Cannot find any BR on the sc_task that uses the due_date