SAP Knowledge Base Article - Public

2541730 - How to add a field to Dynamic Role Assignment when setting up a Dynamic Role

Symptom

How to add fields to the Dynamic Role Assignment object to be able to use more filters in the Dynamic Role configuration

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 HXM Suite
  • SAP SuccessFactors Employee Central

Resolution

It is possible to add Foundation Object and Generic Object fields to the Dynamic Role Assignment object (dynamicRoleAssignment) in the Corporate Data Model. When adding the filed, you must reference "jobInfo". See the example below -:

<hris-element id="dynamicRoleAssignment">
  .....
<hris-field id="jobInfo.custom-string8" visibility="both">
<label>Sub Division</label>
</hris-field>

The field configuration is inherited from the Succession Data Model so the field in the Corporate data model must have the same visibility that is configured in the Succession Data Model.

Important Information:

  1. Foundation Object and Generic Object fields are the only types of fields supported by Dynamic Roles - available field for FO and GO can be found on our implementation guide.
  2. Legacy Picklists are not supported
  3. Fields with type="worker" are not supported

 FAQ - Additional Information

Q) Where can I get information on this from  the guide?

A) Guide: Employee Central Workflows: Implementation and Administration

Chapter: Chapter: Creating a Dynamic Group  and Creating a Dynamic Role

See Also

  • 2838785 - Dynamic Role assignment behavior for Custom Foundation Object
  • 2541730 - How to add a field to Dynamic Role Assignment when setting up a Dynamic Role
  • 2753871 - How to Add Custom Field to a Foundation Object

Keywords

Dynamic role, Dynamic Role assignment, corporate data model, succession data model, Create, Dynamic Role Filter, dynamicRoleAssignment, ECT-113382, FOO , Foundation object, custom field, application error, error : Invalid file format specified. Please ensure the imported file is in XML format. org.xml.sax.SAXException: cust_GO_OrgUnit1 is not a supported type for hris field jobInfo.custom-string2 in dynamicRoleAssignment HRIS Element , KBA , LOD-SF-EC-RBP , Roles & Permissions (EC Core only) , LOD-SF-EC-WFL , Workflows - Configuration, Tools, Objects & Rules , LOD-SF-EC-FOO , Foundation Objects (Organisation, Pay and Job Structures) , How To

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Suite all versions