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 user Using Bell Notifications when user is added to Account Team

edited Dec 17, 2024 8:53PM in Sales 2 comments

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)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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