SAP Knowledge Base Article - Public

2738886 - Filtering by standard candidate country field using API not returning any results

Symptom

When Filtering by the standard candidate country field using API, the system is returning no results.

Environment

SAP Success Factors Recruiting Management 

Reproducing the Issue

Running the below sample query will return no results

https://apisalesdemo4.successfactors.com/odata/v2/Candidate?$select=candidateId,country&$filter=country eq 'Italy'

Resolution

For the country field in the candidate entity you will need to filter using the alpha-2 codes from the ISO 3166 Country Codes.

For example

https://apisalesdemo4.successfactors.com/odata/v2/Candidate?$select=candidateId,country&$filter=country eq 'IT'

Please review the see also section to get a list of the alpha-2 codes.

See Also

 alpha-2 codes from the ISO 3166 Country Codes.

Keywords

KBA , LOD-SF-RCM-API , Webservices & APIs , Problem

Product

SAP SuccessFactors Recruiting all versions