Symptom
- Token-mapped in Document Generation template content is not printed in the custom email sent from a CC-only workflow initiated by Hire Date Correction.
Environment
- SAP SuccessFactors Employee Central
- Document Generation
Reproducing the Issue
- Open Hire Date Correction and select Create New.
- Configure a Document Generation template for the notification.
- Map tokens
- Associate the template with a CC-only workflow.
- Initiate a Hire Date Correction workflow (Manage Data → Create New → Hire Date Correction).
- Observe the workflow email notification: the token is blank/not printed.
Cause
- Hire Date Correction is handled as a new hire workflow. In new/rehire workflows, custom token resolution (including direct, future-direct, and rule mappings) does not apply because the subjectUserID is not sent to Document Generation. (Need to use the Reference + Pending Data mapping) See 3325400 - Hire Date Correction Tool - Subject User Behaviour
- However The Reference + Pending Data mapping approach is not supported for CC-only workflows, so it cannot be used to populate values in CC-only notifications for HDC.
Resolution
- Expected Behaviour: In Hire Date Correction like in New Hire Workflow context, custom tokens will not resolve in workflow emails because the subject user context is not provided to Document Generation.
- Do not rely on Reference + Pending Data for CC-only workflows; this mapping type is not supported for CC-only recipients and will result in blank values.
- If the information must be communicated, consider alternatives:
- 1. Generate the document via Generate Document outside the HDC workflow email, after the user has active data.
- 2. Use approval type workflow where token resolution is supported with Reference + Pending Data mapping
- If a change to the current product behaviour is required, submit an enhancement request (refer to the link in See also).
See Also
- Refer to: KBA 2606814 - Custom workflow template behavior for direct/future-direct/rule mapped fields in new/rehire workflows
- Refer to: KBA 3767018 - Tokens in custom workflow email notifications with direct mapping show empty values
- Refer to: KBA 2090228 - How to submit enhancement ideas for SAP SuccessFactors Product
Keywords
hire date correction, hdc, document generation, workflow email, cc-only workflow, token, country token, custom tokens, pending data mapping, direct mapping, new hire workflow, subjectuserid, empty token, notification template, email tokens , KBA , LOD-SF-EC-DOC , Document Generation , LOD-SF-EC-WFL-CUS , Custom Workflow Notifications , How To
Product
SAP SuccessFactors Employee Central all versions
SAP Knowledge Base Article - Public