Symptom
When upserting location object in job requisition, it is unsuccessful.
Getting error when updating location_obj via ODATA API.
Failed to update location_obj field in Integration Center.
Environment
SAP SuccessFactors Recruiting Management
Resolution
When upsetting location object in requisition via ODATA API or Integration Center, you must also provide the effectivity date or startDate field of the location data aside from the external code.
Here is sample payload
{
"jobReqId": 1234,
"location_obj": [
{"__metadata": {
"type": "SFOData.FOLocation",
"uri": "FOLocation(externalCode='location1',startDate=datetime'1900-01-01T00:00:00')"
},
"__metadata":{
"type": "SFOData.JobRequisition,
"uri": "JobRequisition
}
}
Note: If you have jobstartdate field, the selected location object must be active before job start date.
Keywords
KBA , LOD-SF-RCM-API , Webservices & APIs , Problem