cancel
Showing results for 
Search instead for 
Did you mean: 

Create Employee in OnBoarding 2.0 through API (SAP CPI)

navepras
Explorer
0 Kudos

Greetings,

I am trying to create a Employee in ONB2.0 by API calls through Postman, here i followed calling multiple API calls..

First I am calling API - generateNextPersonID for getting the next Person id which i am getting the ID successfully

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

Third I am calling API - initiateOnboardingForUser for creating a Employee in ONB but I am facing some error while posting,

I have attached the Error which i am getting in Postman

Can anyone help me out in identifying the Payload error if API is correct or help me to identify the right API for creating Employee in ONB 2.0

Error : 500 Internal Server Error, where I am passing the right Payload as provided

Values missing for mandatory keys: personalInfo.first-name,personalInfo.last-name,jobInfo.company,jobInfo.manager-id,jobInfo.company.country

Thanks

Naveen V

View Entire Topic
praneethg1
Explorer
0 Kudos

Hi,

Before initiating the onboarding, we have to upsert all the candidate information which we are getting from external ATS in EC API(PerPerson, Job info, compensation) and then call "initiateOnboardingForUser". It works in this way.

AbhishekSharma1
Explorer
0 Kudos

Hi praneeth_golapudi while upserting data in Job Info, how do we handle country specific mandatory fields. Each country will have separate set of mandatory fields.

PBhandari1
Explorer
0 Kudos

Hi praneeth_golapudi,

We are facing issue while calling "initiateOnboardingForUser": Values missing for mandatory keys: jobInfo.company.country.

We have already updated the company in EmpJob Upsert and country-of-company is not an editable field. Can you please help us on how to get rid of the above error.

Thanks,

Poushali Bhandari

AbhishekSharma1
Explorer
0 Kudos

Hi poushali_bhandari is your EmpJob upsert successful ? I am using the attached payload. Also, the position which you are using, is it current or future effective.