2284463 - How to perform an Odata API Upsert call via Chrome Rest extension

SAP Knowledge Base Article - Public

2284463 - How to perform an Odata API Upsert call via Chrome Rest extension

Symptom

This article helps to understand how to upsert (create/update) data into successfactors via Odata API through non-middleware applications like Google chrome Rest extension.

 

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 dXNlcm5hbWVAY29tcGFueUlkOnBhc3N3b3Jk
Content-Type: application/json; charset=utf-8

4. Payload to be entered in the below format (for example)

{"__metadata":{"uri":"Candidate('06')"},"firstName":"Vik","lastName":"A","primaryEmail":"abc@abc.com","cellPhone" : "111-11111","country":"India"}

Note - The name of the Odata API entity is mentioned within the payload here ie, the entity name is "Candidate" in this example.

The screenshot below explains the same pictorically.

rest.jpg

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 , api upsert operation , KBA , LOD-SF-INT-API , SF API & Adhoc API Framework , How To

Product

SAP SuccessFactors HCM Core 1511 ; SAP SuccessFactors HCM Core 1602 ; SAP SuccessFactors HCM Core 1605