How can I enable bell notifications when a user is added to the account team?

You can use this Groovy script to enable bell notifications when a user is added to the account team:

// Send notification to team member when they're assigned to the account team // 
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)
//Log a confirmation that the notification has been sent. Logs can be viewed in 'Runtime Messages'.
} else {
println("No recipient. Notification will not be sent.")
}
}
} catch (e) {
throw new oracle.jbo.ValidationException('Failure to trigger Notification from Groovy Script: ' + e.getMessage())
}