Modify workflow

Deepa12
Tera Contributor

Hi,

Please assist to modify existing workflow

 Default SLA Workflow
      ** For the “Create Event, Notify Assignee” step after 50% SLA wait.  Update Parameter 1 logic.  If assigned_to is not empty, parm 1 is assigned_to.  If assigned_to is empty, parm 1 is assignment_group.
      ** For the “Create Event, Notify Assignee 75%” step after 75% SLA wait.  Update Parameter 1 logic the same way.
      ** For the “Create Event, Notify Assignee” step after SLA breached.  Update Parameter 1 logic the same way.

Thanks.

2 REPLIES 2

yashkamde
Mega Sage

Hello @Deepa12 ,

 

Firstly Copy the Ootb Default SLA workflow and then in create event core action :
Screenshot 2026-02-27 152310.png

 

>Use the same logic for  Notify Assignee 75% & SLA Breached event !

 

If my response helped mark as helpful and accept the solution.

DevH
Tera Contributor

Hi @Deepa12 

Since you are using Flow Designer for your Default SLA Trigger, the cleanest way to do this is by using a small Inline Script on the Parm 1 field of your "Create Event Record" actions. This avoids adding a bunch of "If/Else" branches to your flow.

Here is how you can actually do this:

For steps 4, 11, and 16 (your Create Event steps), follow these instructions:

  1. Click into the Parm 1 field.

  2. On the far right of the field, click the Script icon (</>) to open the inline editor.

  3. Paste this logic in:

JavaScript
var taskRecord = fd_data.trigger.task_sla.task; 

if (taskRecord.assigned_to) {
    // If assigned, return the person
    return taskRecord.assigned_to;
} else {
    // If empty, return the group
    return taskRecord.assignment_group;
}