SAP Knowledge Base Article - Public

3455965 - "ExitForGettingWorkflowRecipients" BADI for Custom Recipient Determination Sends Notification Twice

Symptom

You are using "ExitForGettingWorkflowRecipients" BADI for Custom Recipient Determination and you realize that the BADI is sending two notifications (e.g. the recipient has been receiving two e-mails). 

Environment

  • SAP Cloud for Customer
  • SAP Cloud Applications Studio

Reproducing the Issue

  1. Navigate to SAP Cloud Applications Studio.
  2. Create an Enhancement Implementation for "ExitForGettingWorkflowRecipients" BADI.
  3. Maintain either "AgentUUID.Add" and "AgentEmail.Add" variables in "DETERMINE_CUST_RECIP.absl". 
  4. Save, Activate and Deploy.
  5. Log in to the Tenant Frontend.
  6. Trigger the Enhancement Implementation.
  7. You can see two notifications (e.g. two e-mails) being sent to the Recipient.

Cause

The issue happens because you're filling the details for the same recipient twice in your "DETERMINE_CUST_RECIP.absl" logic. You are adding both "AgentUUID.Add " and "AgentEmail.Add" variables. Therefore, the system sends two notifications to the recipient. Just filling either the AgentUUID or the AgentEmail is enough. It is not required to fill both. 

Resolution

Please ensure to fill exclusively the AgentUUID or the AgentEmail in your "DETERMINE_CUST_RECIP.absl" logic only. Then, those recipients will receive just one notification. By filling both "AgentUUID.Add " and "AgentEmail.Add" variables, you'll receive two notifications instead.

See Also

Enhancement Implementations Quick Guide

Use Custom Logic to Determine Recipients for Workflow E-mails

Keywords

ExitForGettingWorkflowRecipients, BADI, Custom Recipient Determination, e-mail, two, twice , KBA , LOD-CRM-WKF , Workflow , AP-RC-BDS-AE , ByDesign Studio Application Exits , How To

Product

SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions