Why aren't activities bell notifications directing to Oracle Sales in the Redwood User Experience?
Activities don't support bell notification navigation to Oracle Sales in the Redwood User Experience by default like the other objects.
You can direct the navigation to the Opportunity, Lead, Contact, or Account detail page associated with the activity using the Groovy script shown in this topic.
Note: If more than one object is associated with the activity,
navigation precedence will be in this order: Opportunity > Lead > Contact > Account.
This navigation precedence is the default for drill-down flows. The Groovy script
provided here follows the default precedence.
Also note that for standalone activities (those that don't have an associated object like Opportunity, Lead, and so on) the navigation will still go to the classic Sales UI, which is the default behavior.
Here's the Groovy script:
def map = new HashMap();
def messageText = "The "+Subject+" has been updated";
def recipientPartyId = OwnerId;
map.put("Channels",["ORA_SVC_MOBILE","ORA_SVC_BELL"]);
map.put("MessageText", messageText);
map.put("RecipientPartyId", recipientPartyId);
// Navigate to Opportunity, Lead, Contact or Account (in that order) if associated with the activity
// Navigate to the default sUI otherwise
if(OpportunityId) {
// Navigate to the Detail page of the Opportunity associated with the activity
map.put("ObjectCode", "OpportunityVO");
map.put("ObjectId", OpportunityId);
} else if(LeadId) {
// Navigate to the Detail page of the Lead associated with the activity
map.put("ObjectCode", "MklLeadVO");
map.put("ObjectId", LeadId);
} else if(PrimaryContactId) {
// Navigate to the Detail page of the Primary Contact associated with the activity
map.put("ObjectCode", "PersonProfile");
map.put("ObjectId", PrimaryContactId);
} else if(AccountId) {
// Navigate to the Detail page of the Account associated with the activity
map.put("ObjectCode", "OrganizationProfile");
map.put("ObjectId", AccountId);
}
adf.util.sendNotification(adf, map)