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 (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.

 

2019-08-09 06_05_28-Engineer Assistant.png

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

Product

SAP SuccessFactors Platform 1905 ; SAP SuccessFactors Platform 1908 ; SAP SuccessFactors platform 1611 ; SAP SuccessFactors platform 1702 ; SAP SuccessFactors platform 1705 ; SAP SuccessFactors platform 1708 ; SAP SuccessFactors platform 1711 ; SAP SuccessFactors platform 1802 ; SAP SuccessFactors platform 1805 ; SAP SuccessFactors platform 1808 ; SAP SuccessFactors platform 1811 ; SAP SuccessFactors platform 1902