SAP Knowledge Base Article - Public

3617613 - Custom tokens not visible in document mapping business rule - Onboarding

Symptom

Custom Tokens created in Manage Document Template Mapping are  not visible in Document Mapping Business Rule

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental

Environment

SAP SuccessFactors Onboarding 2.0

Reproducing the Issue

  1. Create custom tokens: EMAIL_CUSTOM_TOKEN_MAPPING
  2. Attempt to write a rule on the custom tokens
  3. Observe that the custom tokens are not visible in the "Document Mapping business rule"

Cause

This is expected behaviour of the system, the token itself does not appear in the dropdown DocumentMappingRuleResult. 

Resolution

  1. Create a template for EMAIL_CUSTOM_TOKEN_MAPPING similar to EMAIL_CUSTOM_TOKEN_MAPPING.
  2. In the rule, set the value to DocumentMappingResult only. The token will not be displayed in the dropdown.
  3. Set 'Mapping result'."genericString1" for string values. For date and long, use similar fields in the result object accordingly. The screenshot below is an example configuration 
      

See Also

Refer to: Adding Custom Tokens in Email Notifications

Refer to: Rule Scenario for Document Generation

Keywords

custom tokens, document mapping, business rule, sap successfactors onboarding, EMAIL_CUSTOM_TOKEN_MAPPING_EN_US, DocumentMappingResult, Mapping result, genericString1 , KBA , LOD-SF-OBX-EML , Notifications , How To

Product

SAP SuccessFactors Onboarding all versions

Attachments

Pasted image.png