How do picklist fields of job requisitions appear in the JobRequisition OData API entity? How to get their information?
NOTE: Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
- SAP SuccessFactors HXM Suite
- Recruiting OData API
The picklist fields of a job requisition are represented as a navigation property to a PicklistOption record:
When performing queries to the JobRequisition API entity, you can access the picklist values by adding the field name to the query's $expand parameter.
Let's say I want to query the following information of the job requisition record with ID 28:
- externalCode of the 'payType' picklist field
and I want to get the picklist value (externalCode) of the 'payType' field.
Request URL: https://<yourAPIURL>/odata/v2/JobRequisition('28')?$format=json&$expand=payType&$select=jobReqId,currency,jobCode,salaryBase,payType/externalCode
job, requisition, jobrequisition, api, entity, recruiting, rcm, odata, query, get, fetch, not, appear, appears, appearing, doesn't, visible, value, picklist, pick list , KBA , LOD-SF-RCM-API , Webservices & APIs , LOD-SF-INT , Integrations , LOD-SF-INT-ODATA , OData API Framework , How To