Add Pending Worker/Work Relationship with previously cancelled Pending Work Relationship
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