SAP Knowledge Base Article - Public

2951465 - When querying JobRequisition entity via OData API I cannot get the country value localized - Recruiting Management

Symptom

When querying JobRequisition entity via OData API I cannot get the country value localized.

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 Recruiting Management

Reproducing the Issue

  1. Do a query on the JobRequisition Entity;
  2. Select the field Country;
  3. Notice that the field comes as a String with only the en_US value:

Cause

This is caused by the design of the system. Job Requisition use a field type Derived for the Country, which does not have a entity for representation.

Resolution

Although on the field definition on the JobRequisition template the system has a picklist associated to it, the field on the OData Metadata is represented by String since the type of the field is Derived and it doesn't have a representation for this type of fields in OData. This limits the options that we have when working with this field specifically.

Keywords

Job, requisition, entity, api, odata, derived, country, field, query, get, localized, locale, language, picklist , KBA , LOD-SF-RCM-API , Webservices & APIs , Problem

Product

SAP SuccessFactors Recruiting all versions