on 2020 Mar 13 11:02 PM
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.
Request clarification before answering.
| User | Count |
|---|---|
| 7 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.