cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PerPerson upserting by odata api

Former Member
0 Kudos
885

Hi,

I am creating new employee by odata api . I am referring https://blogs.sap.com/2015/03/23/how-to-create-an-employee-using-odata-apis/ this blog.

I created a new user successfully (userID:harizoho) and then I tried to create perperson :

Requested url : https://sandbox.api.sap.com/successfactors/odata/v2/upsert

Input : {"__metadata":{"uri":"PerPerson('harizoho')"},"personIdExternal":"harizohopid","dateOfBirth": "/Date(1303743709000)/","countryOfBirth":"USA","userId": "harizoho"}

Response : {"d" : [{"key" : "PerPerson/personIdExternal=harizoho", "status" : "OK", "editStatus" : "UPSERTED", "message" : null, "index" : 0, "httpCode" : 200, "inlineResults" : null}]}

After this I checked whether it is successfully created or not in https://api.sap.com/api/ECPersonalInformation/resource?tag=PerPerson&path=get_PerPerson___personIdEx...

It returned error code 404 why?

{"error":{"code":"NotFoundException","message":{"lang":"en-US","value":"PerPerson with key ('harizoho') not found!"}}}

Why it shows NotFoundException even though i got success response for creating perperson?

Regards,

venkatesh.

Accepted Solutions (0)

Answers (0)