SAP Knowledge Base Article - Public

3767018 - Tokens in custom workflow email notifications with direct mapping type show empty values--1H2026

Symptom

  • Custom workflow email notification templates send emails where some mapped fields/tokens are blank.
  • The same tokens previously resolved values correctly.

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 Employee Central
  • Custom Workflow Notifications

Reproducing the Issue

  1. Configure a custom workflow email notification template that includes tokens mapped to fields from the workflow target record.
  2. Launch a workflow that updates effective-dated data and wait for the notification to be sent.
  3. Observe that certain mapped values in the received email are empty.

Host Country token is empty.

Cause

  • A recent token enhancement has been published that we can use reference and pending data combination to get the pending new data so we can compare what is the old value and what is the new value.
  • Direct mapping type can extract old value.
  • For adding global assignment, when you use old Direct mapping type, no value would be extracted as there is no old value existing for new GA employment.

Resolution

  1. Identify tokens in the custom workflow notification template that map to fields from the workflow’s target record which become effective only after approval (for example, effective-dated or post-approval values).
  2. Edit the template and update those tokens to use the new token resolution approach that combines reference and pending data so they resolve values from the pending (to-be-approved) record.
  3. Save the template and validate the behavior in a test environment by initiating a representative workflow and confirming that the previously blank values are now populated.
  4. Move the updated template to production following your standard change management process.

A more typical use case is, now we can compare what is the old data and what is our new data. For example we want to change the job title for one user and we want to show the changes in the workflow custom email notification.

See Also

Keywords

KI1H2026, custom workflow notification, email template, token resolution, mapped values empty, blank fields, pending data, reference token, effective-dated, workflow approval, notification email, document template, workflow emails, token not resolved, post-approval data, email placeholders , KBA , LOD-SF-EC-WFL-CUS , Custom Workflow Notifications , How To

Product

SAP SuccessFactors Employee Central all versions

Attachments

Pasted image.png
Pasted image.png
Pasted image.png
Pasted image.png