Notifications: Send notification to dynamically selected group

ericgilmore
Tera Guru

What is:

Working on a notification. I see that a previous dev created a notification that looks relatively normal. The "Who will receive" tab on the notification has a valid Assignment group selected, and there's a email script  on the "What it will contain" tab that's called in the Message HTML field: ${mail_script:other_groups_to_cc}

When triggered, the notification goes to the group selected on Who will receive, AND when the included mail script ${mail_script:other_groups_to_cc} is run, it adds additional groups to the CC field based on other selections on the submitted form. Basically the script does a lookup of Assignment groups associated with another value passed in via the submitted ticket.

The problem:

We no longer want the notification to go to the assignment group listed on the Who will receive tab, only to the group added via the mail script.

But, the notification won't trigger if nothing is selected on the Who will receive tab.

The straightforward solution I thought of was just to add another field on the form (hidden) that captures the group associated to the attribute in question and use that instead of the mail script to lookup the proper group to notify. But is this a short sighted solution?

Is there a way to dynamically choose what assignment group to send a notification to when the notification is triggered?

1 ACCEPTED SOLUTION

Yousaf
Giga Sage

Hi,

You can dynamically send based on like you said look up of field.

Please refer to this link.

Sending a dynamic email based on a user field

 

Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***

View solution in original post

1 REPLY 1

Yousaf
Giga Sage

Hi,

You can dynamically send based on like you said look up of field.

Please refer to this link.

Sending a dynamic email based on a user field

 

Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***