How to send email when sla is about to breach in 48 hours

srikanthgun
Giga Contributor

Hi

I have requirement  in Request item  when SLA is about to breach at on 48 hours 
a email to send to assignment How to achieve with flow

Can anyone please help out 

Thanks in advance

3 REPLIES 3

Naveen20
ServiceNow Employee
You may do it with Flow Designer — trigger on task_sla, not on sc_req_item:

1. Create the Flow

Flow Designer → New → Flow (run as System User).

2. Trigger

- Trigger type: Updated
- Table: Task SLA [task_sla]
- Condition:
- Task.Table is Requested Item [sc_req_item]
- Has breached is false
- Active is true
- Stage is In progress
- Business time left less than or equals 48 00:00:00
- Run Trigger: Once ← important, otherwise it fires on every SLA recalculation

3. Action — Send Email

Use the Send Email action (or fire a custom event and let a Notification handle it — cleaner long-term).

- To: dot-walk → Trigger → Task SLA Record → Task → Assignment group → Email
(If the group has no email set, use Look Up Records on sys_user_grmember for that group and loop, or set the group email — recommended.)
- Subject and Body as needed

srikanthgun
Giga Contributor

Hi @Naveen20 
Thanks for the approach - I created flow but triggering for  Tasks example  Problem, Inc, RITM etc.
I want to trigger for only Request Item - Request type is XYZ.

any logic can you guide me to add condition 
Please refer screenshot 

srikanthgun_0-1778431886079.png

 

 


Thanks

Naveen20
ServiceNow Employee

@srikanthgun You can use the filter task_sla.task.sys_class_name = 'sc_req_item' in the trigger condition