SAP Knowledge Base Article - Public

2961849 - Same reference mapping in document generation template only return value for one reference

Symptom

In a notification template when using two Placeholder with the same reference mapping (Subject User Name), notification display value for only one reference mapping and other is blank value

Environment

SAP SuccessFactors Employee Central - Document Generation

Reproducing the Issue

  1. Configure document template with “workflow” category.
  2. In template mapping, set two placeholder mapping type as reference and “Subject UserName” as reference.
  3. Make changes to employee profile to trigger workflow.
  4. Custom notifications triggered successfully.
  5. Notice one placeholder is blank whereas another placeholder value with subject username is pulled correctly.

Cause

  • As per current system behavior, workflow supports only a 1:1 relation between a Reference ID and a placeholder. Therefore, if there are more than one placeholder mapped to the same reference, the system will consider only one of those placeholders. The other placeholders mapped to the same reference will get ignored.
  • As a result, when workflow calls the Document Generation APIs, the values of those ignored placeholders are not passed along. For placeholders mapped to References, if their values are not passed to Document Generation, then by default Document Generation will resolve them as empty values.
  • This is why when you have two placeholders mapped to the same reference, the Workflow email notification will have a value for only one of those two, while the other one will appear as a blank value.

Resolution

You can create just one placeholder and use it in multiple places within the template content.

Keywords

reference mapping, duplicate reference mapping, same reference mapping, document generation, custom notification, workflow notification , KBA , LOD-SF-EC-DOC , Document Generation , LOD-SF-EC , Employee Central , Problem

Product

SAP SuccessFactors Employee Central 2411