SAP Knowledge Base Article - Public

2606814 - Custom workflow template behavior for direct mapped and rule mapped fields

Symptom

Custom workflow template with direct mapped and rule mapped fields shows blank values in the received email.

Environment

  • SAP SuccessFactors Employee Central: Custom Workflow Notification

Reproducing the Issue

  1. Create configuration for custom workflow notification email with placeholders.
  2. Create direct mapping for the placeholders.
  3. Now trigger the workflow and notice that direct mapped/rule mapped fields show blank values in the received email.

Cause

For the following workflow types, Document Generation's direct mapping will display empty values:

  • FO (foundation object) workflow types
  • New hire
  • Rehire
  • GO (generic/custom MDF object) workflows

Resolution

This is an expected behavior. As pre-product design, the workflow types mentioned above will not show values for direct mapped fields.

For new hires,

  • If only CC users are available in workflow, custom notification will fetch values correctly for directly mapped fields
  • If Approver and CC users are available in workflow, custom notification will fetch blank values for directly mapped fields

For direct, future-direct and rule mapping in MDF, New/Rehire workflow, subjectUserID will not be sent to DocGen as subjectUser is not clear so that email token can't fetch the user's information and will be populate blank value for fetching the subject user's information such as user's personalInfo, jobinfo and so on.

Also for reference mapping, tokens like [[SUBJECT_USER_LOCATION]] will get old location from old employment at the time of rehire, since it works the same as the 'direct' mapping generally does, but the 'Reference' mapping type is just specific to workflows, as the direct mapping itself cannot gather information for hire/rehire workflows properly as above, the reference mapping as well exhibits similar behavior.

Please request an enhancement request as per KBA 2090228 mentioning the requirement and business needs so that product team can assess and implement the functionality based on feasibility.

See Also

https://influence.sap.com/sap/ino/#/idea/246935

https://influence.sap.com/sap/ino/#/idea/247395

Keywords

direct mapping, Rule mapping, custom workflow, blank values custom workflow, blank placeholder, time off custom workflow, custom MDF, mapping, direct mapping, placeholders, custom email notification , KBA , LOD-SF-EC-WFL , Workflows - Configuration, Tools, Objects & Rules , LOD-SF-MDF , Metadata Framework , LOD-SF-EC-DOC , Document Generation , Product Enhancement

Product

SAP SuccessFactors Employee Central all versions