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

Create Employee in OnBoarding 2.0 through API (SAP CPI) - initiateOnboardingForUser not successful

andreasamann
Discoverer
0 Kudos
2,119

I am trying to create an Onboardee in ONB2.0 by API calls via CPI.

1. I am calling API - createOnboardee for getting the Process ID which it is posted successfully

2. I am updating personalInfo, EmploymentInfo, JobInfo, BiographicalInfo API via CPI which all are successfully upserted.

3. With a delay of 30 seconds I try to call initiateOnboardingForUser for creating a Employee in ONB but I am facing the following error:

While upserting JobInfo in step 2. I upsert also the country:

When using Postman a second later to call initiateOnboardingForUser with the same userid it works without problems.

Do I miss something. Why is there a difference between Postman and CPI?

PS: JobInfo/EmpJob for the Onboardees is always empty although upserted correctly (see above). Might this be the issue?

https://api12preview.sapsf.eu/odata/v2/EmpJob?$format=json&$filter=userId eq '123

{ "d": { "results": [] } }

Accepted Solutions (0)

Answers (0)