SAP Knowledge Base Article - Public

2618180 - Candidate Odata API Error : [COE0019]phoneCountryCode required, optInCellNumber required (use setSmsNotificationPreference)

Symptom

Odata API Error response when performing post / upsert on Candidate API with below fields

  • "phoneCountryCode”
  • “optInCellNumber”

Response Payload:

{"error" : {
"code" : "COE_GENERAL_SERVER_FAILURE", "message" : {
"lang" : "en-US", "value" : "[COE0019]phoneCountryCode required, optInCellNumber required, with the index 0"}

Environment

SAP SuccessFactors Recruiting

Cause

Inconsistency between Candidate OData API metadata and Payload data validation for Candidate API.

Candidate Odata API does not support below fields, thus they do not appear in Odata API dictionary:

  • "phoneCountryCode”
  • “optInCellNumber”

Resolution

In Odata API we have the "setSmsNotificationPreference" which determines if a candidate receives SMS messages. To populate phoneCountryCode and optInCellNumber use ODATA Function Import setSmsNotificationPreference. In this way, the CPT will have this fields and will have the SMS options filled in via OData.

Refer to the following section of the API guide: setSmsNotificationPreference

See Also

setSmsNotificationPreference

Keywords

phoneCountryCode, optInCellNumber, setSmsNotificationPreference, Odata API, Candidate Odata API, integration center , KBA , LOD-SF-RCM-INT , Integration Center & Intelligent Services , LOD-SF-INT , Integrations , LOD-SF-RCM-API , Webservices & APIs , Problem

Product

SAP SuccessFactors HCM Core all versions ; SAP SuccessFactors Recruiting 1802