The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Notification to assignment group in a requested item.

zabeeulla2
Kilo Expert

Hello Folks,

I have a requirement to send a notification to the respective assigned groups when the assigned group variable is filled in service catalog,

How to get the variable value in the notification recipient field so that the notification can be sent to particular group selected in the service catalog.

I tried writing a business rule but it didn't work. I appreciate your help.

Thanks and Regards,

Md Zabeeulla.

1 ACCEPTED SOLUTION

Ashish Kumar Ag
Kilo Guru

Through BR you can get the value of Assignment group in catalog.


Write a BR in sc_cat _item.



var grp = current.variable_pool.assignment group name in catalog.


Now according to your requirement populate the assignment group of request or request item with the value of grp.


if request: Gliderecord request and update it.


if request item current.assignment_group = grp;



In notification you can use the assignment group field.


View solution in original post

8 REPLIES 8

mdsannavulla
Kilo Guru

In workflow you can get the variable value by using "current.variable_pool.variablename" and try to send the notification through workflow


I tried doing this but it doesn't work. I wrote the script suggested by you in the script column of notification and tried .


Thanks,


Zabeeulla.


Subhajit1
Giga Guru

Do you need to send the notification when that Variable is filled, or when the Request is submitted and the RITM and Tasks get created?


IMO, sending the notification on populating the Variable is a bad idea as before submitting the Group name can be changed.


Still, if you want to do this, you will need to write a OnChange Client Script that will trigger a Server Call to trigger an Event to finally trigger the Email Notification


In my scenario the groupname in the requested item is readonly so there is no question of changing the group name before submitting.