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);