Groovy script to notify all members added in Queue in Help Desk — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Groovy script to notify all members added in Queue in Help Desk

Summary:

We are using below groovy script which is not working. Please let me know if anyone is having a working groovy script handy, which can trigger notification to all the members which are part of a Queue when a SR is assigned to a Queue.

if (AssigneePersonName == "" || AssigneePersonName == null) {
def srQueue = QueueName
if (srQueue != null || srQueue == "") {
def queueMemVo = SvcQueue?.resourceMembers;
if (queueMemVo != null) {
queueMemVo.reset();
while (queueMemVo.hasNext()) {
def queueResRow = queueMemVo.next();
def messageText = 'SR Assigned'
def map = new HashMap();
map.put("RecipientPartyId", queueResRow?.ObjectId);
map.put("Channels", ["ORA_SVC_EMAIL", "ORA_SVC_BELL"]);
map.put("MessageText", messageText);
adf.util.sendNotification(adf, map);

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!