SAP Knowledge Base Article - Public

3128008 - Update field to "null" via ODATA API - Recruiting Management

Symptom

The user would like to upsert field to null but this is not working properly on the instance.

Environment

SAP SuccessFactors Recruiting Management

Reproducing the Issue

1. Verify if the field is nullable from the ODATA API Data Dictionary

2. Run the Payload to update the field to null

Example:

{
"__metadata":{
    "type":"SFOData.JobApplication",
    "uri":"JobApplication"
},
    "applicationId": "242",
    "startDate": null,
    "cellPhone": "123456",
    "address": "testaddress1"


}
3. You will received a successful message
                <d:key>JobApplication/applicationId=242</d:key>
                <d:status>OK</d:status>
                <d:editStatus>UPDATED</d:editStatus>
                <d:message>Application has been updated successfully</d:message>
 
4. Field still has its old value.

Resolution

The nullable atrribute in ODATA API pertains only to the required fields that will need to be bypassed when inserting values for the first time.

It will be impossible to overwrite the field with an existing value to null.

This is equivalent to deleting a value and delete operation is not supported via API.

See Also

2882860 - How to edit Job Application data via ODATA API - Recruiting Management

Keywords

upsert to null, null, odata api,  , KBA , LOD-SF-RCM-API , Webservices & APIs , Problem

Product

SAP SuccessFactors Recruiting all versions