Symptom
- Custom token defined for retrieving future data in email notification templates returns empty values.
- Job info records contain values, but the approval record has not yet become effective.
- The workflow includes approvers and CC users, but the custom template is linked only to CC users.
Environment
SAP SuccessFactors Employee Central
- Workflow
- Document Template
Reproducing the Issue
- Define a custom token in the document template for CC users
- Set its mapping type to future direct to retrieve future data.
- Trigger a Job Information change workflow to obtain email notification upon workflow approval completion.
- Observe that the token value is empty despite job info records containing values.
Cause
Misunderstand of Mapping types: past direct, direct and future direct.
The three mapping types are not according to the actual date, but the event date used in the workflow.
For example:
- A field A is configured in Job Information, in the January 1st record, the value of A is 1.
- On March 1st, a record effective from May 1st is inserted, changing the value of field A to 3. After this workflow is approved, the email received by CC will show the past direct as 1, the direct as 3, and the future direct as empty.
- Then, on March 1st, another record effective from April 1st is inserted, changing the value of field A to 2. After this workflow is approved, the email received by CC will show the past direct as 1, the direct as 2, and the future direct as 3.
Therefore, past direct, direct, and future direct refer to the data for the past and future relative to the event date of this workflow, while direct refers to the data within this workflow.
Resolution
Change the Mapping Type from Future Direct to Direct.
Keywords
email notification template, token retrieval, future data, sap successfactors employee central, custom workflow notifications, job info records, approval record, cc users, empty token value, workflow approval , KBA , LOD-SF-EC-WFL-CUS , Custom Workflow Notifications , Problem
SAP Knowledge Base Article - Public