Trigger sla based on the variable date

mounika7675
Tera Contributor

Hi 👋,

 

I have a catalog item variable called "Return Date" with the variable type set to Date.

I need to trigger an SLA based on the value selected in the "Return Date" variable of the catalog item.

 

The SLA should attach to the sc_task table.

I have already configured the SLA as shown in the screenshot below, and it works correctly only when the Return Date is the current date. For example, if the Return Date is 21-05-2026 (today), the SLA gets attached and works as expected.

1000152749.jpg

 

 

However, if the Return Date is a future date, such as 22-05-2026, I expect the SLA to get attached on that specific date. But currently, the SLA is not getting triggered or attached for future dates.

 

PROBLEM STATEMENT:

On 20th May 2026, I created two requests:

 

1. First request had the Return Date set as 20-05-2026

2. Second request had the Return Date set as 21-05-2026

 

The SLA is configured on the sc_task table and is supposed to attach based on the value selected in the Return Date catalog variable.

 

For the first request, where the Return Date was 20-05-2026 (same day), the SLA got attached and worked correctly.

 

However, for the second request, where the Return Date was 21-05-2026 (future date at the time of request creation), the SLA did not get attached.

 

Now today, on 21-05-2026, when I checked the second request, the SLA is still not attached even though today matches the Return Date mentioned in the catalog variable.

 

Expected behavior:

The SLA should automatically attach to the sc_task record on the exact date mentioned in the Return Date variable, even if the request was created earlier.

 

Please let me know how we can achieve this condition 

 

 

Thanks in advance for your help🙂

2 REPLIES 2

Tanushree Maiti
Giga Patron

Hi @mounika7675 

 

SLA gets attached to task_sla based on the defined duration, not based on any specific field value.

 

a) Your SCTASK SLA start condition should be:

[catalog item.name] is [your catalog item name]

b) In your Flow/Workflow, set the SCTASK duration to 5 days.

 

When the SCTASK will be  triggered through the Flow/Workflow, the configured 5-day task_sla will automatically get attached.

 

Note: This SLA will not be attached to manually created SCTASKs.

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Hello @Tanushree Maiti 

 

Could you please help me in understanding below pointer

 

b) In your Flow/Workflow, set the SCTASK duration to 5 days.  

Also how does it works in my case