SAP Knowledge Base Article - Public

3134861 - How to get the custom field in DynamicRole Via API

Symptom

  • JobInfo custom fields added under Foundation Object Dyamic role's assignment is not visible in OData API

Environment

  • SAP SuccessFactors HXM Core 2111
  • SAP SuccessFactors Employee Central

Reproducing the Issue

1. Add custom field of jobInfo of type Foundation Object under dynamicRoleAssignment in the corporate data model.

2. The field will become visible in the Dynamic Role Foundation Object UI

3. Observe that in OData API this custom field added under dynamic role is not visible under FODynamicRole Entity.

Resolution

  • For OData API, we would hide custom-string fields in FODynamicRole which are from jobInfo HRIS element.
  • For SOAP API, we would keep these fields like dynamicRoleAssignment_jobInfo_custom_string6
  • The behavior: Custom field defined within Dynamic Role Assignment is not being reflected on the OData API Data Dictionary, is as per design.

Keywords

jobInfo.custom-string, compInfo.custom-string, custom field defined under dynamic role assignment Foundation Object not visible in API , KBA , LOD-SF-EC-FOO , Foundation Objects (Organisation, Pay and Job Structures) , Problem

Product

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

Attachments

Pasted image.png