You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Add Pending Worker/Work Relationship with previously cancelled Pending Work Relationship

edited Jan 23, 2025 10:27AM in HCM REST APIs 2 comments

Summary:

Hi,

Right now, we are creating via REST API - Pending Worker with Pending Work Relationship as soon as the candidate has signed the contract (we use a Global Number as Person Number and not the auto-generated number from Oracle).

If in case the person did not show up or retracted, we perform cancel work relationship action via REST API as well.

The problem arises, is when the same person went back and we re-trigger Pending Worker with Pending Work Relationship (using the same Global Number) REST API returns an error out that the employee number exists.

Since cancel Work Relationship only delete the work relationship, in the database, this person (with the same Global Number) actually still exists. Our plan was instead of creating New Pending Worker, we just then just Add Work Relationship for this person. The problem is that the workers end-point is not returning anymore this person as it is not considered as "Worker" anymore

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!