Groovy Script To Notify user Using Bell Notifications when user is added to Account Team
We are unable to implement bell notification on Sales Account Resource which is child object of Sales Account. We have triggered it on after create event. Please find below snippet of the script.
try {
def map = new HashMap();
def AccID= SalesAccountPartyId
def recipientPartyIds = ResourceId
// Specify default MessageText
def messageText = "You've been added to Account team,please engage ";
// Specify one or more channels
if(AccID!=null){
map.put("Channels", ["ORA_SVC_BELL"]);
map.put("MessageText", messageText);
// The following can be used to pass a Long PartyId
map.put("RecipientPartyId",recipientPartyIds );
if (recipientPartyIds) {
// Call to send notification
adf.util.sendNotification(adf, map)
Tagged:
0