subflow not allowing me to publish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2025 06:57 AM
Hi All,
I have a requirement to create a flow for the send an email when SLA breaches to 80%, 100%,120% and 140%.
We created a very long flow it is about 300 line flow because of this facing performance issues in the system.
so decided to use subflows in the sub flow while creating for 80% SLA breach we are using SLA percentage timer and trigger condition is on main FLOW so while publishing the subflow it is throwing an error like: "SLA Percentage Timer can only be used when Trigger is SLA Task"
how to over come this please provide your inputs/suggestions thanknyou!
Looking forward for your response
Regards,
AK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2025 07:03 AM
I think this restriction exists because the SLA Percentage Timer relies on the context of an SLA Task record to calculate the breach percentage (e.g., 80%, 100%, 120%, 140%) based on the SLA's duration and progress and since your subflow doesn't have an SLA Task trigger, the system throws this error during validation.
Replace the four SLA Percentage Timer actions with a single Script Action that monitors the task_sla.percentage_complete field and triggers notifications at the desired thresholds.
Create an Event (sla.breach.notification) and a Notification triggered by the event to send the email.
Thanks,
Tushar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2025 07:10 AM
what error you are getting when you are trying to publish?
share screenshots.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2025 07:18 AM
Hi Screenshot is below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2025 07:35 AM
@MohammedA601527
This error indicates a problem with the trigger, the trigger of your flow should be on the task_sla but most likely it is not... please review this and let me know what table is in your trigger
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */