Symptom
This article helps to understand how to upsert (import/update) data into successfactors via Odata API through non-middleware applications like Google chrome Rest extension.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
Successfactors HCM Core
Cause
To POST data to successfactors via webservice (Odata API) without the involvement of a middleware.
Resolution
From the REST client,
1. Choose the appropriate api end-point corresponding to the data center of your account.
(For example- If you are customer with data center location 4, you would use the end-point as mentioned below
https://api4.successfactors.com/odata/v2/upsert?$format=json
2. Choose the API operation = POST
3. Enter the below in the Headers box
accept: application/json
Authorization: Basic XXXXXXXXXXXXXXXXX
Content-Type: application/json; charset=utf-8
4. Payload to be entered in the below format (for example)
{"__metadata":{"uri":"Candidate('XX')"},"firstName":"XXX","lastName":"X","primaryEmail":"XXXXX@XXXXXX.com","cellPhone" : "XXX-XXXXXX","country":"XXXXX"}
Note - The name of the Odata API entity is mentioned within the payload here ie, the entity name is "Candidate" in this example.
See Also
If you are new user of Rest Client, Please go through the below KBA to understand, download and to setup the authorization header.
2173792 - How to use Google Rest client to run Odata API
Keywords
Using Rest client, Google Rest add-on , OData API upsert operation , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , How To