SAP Knowledge Base Article - Public

2970614 - Document Generation to derive primary email address value of the employee


How to get the primary email address value shown in the document generation or custom workflow?


SAP SuccessFactors Employee Central - Document Generation


Configure Business Rule tool > Create New rule:

1. Scenario Basic, base object = Document Mapping Rule Result

2. Add Parameter object Email Information with code emailInfo. (Info's i is capital).

3. Set rule context as Document Generation.

4. Add condition to pick the required email address type/ kind. In this example checking if iPrimary = Yes.

5. Then statement set genericString1 = EmailInfo.Email Address.

6. Create Document Generation Template with place holder for showing email address.

7. Create Document Generation Template Mapping for this place holder and select Mapping Type=Rule, Rule=select rule that you created and save.

8. Go to Generate Document to test the document generation or trigger the transaction to test custom workflow notification in case this was created for Custom workflow notification.

9. Sample user Alice has two email address in Contact Information.

10. Test Result for document generation:


Document Generation, custom workflow email, get primary email address value, show email address in document generation, derive email ID , KBA , LOD-SF-EC-DOC , Document Generation , LOD-SF-EC-WFL-CUS , Custom Workflow Notifications , Problem


SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HXM Core 2005