Delegation Sync
The delegation sync process is a two-way sync:
The adapter gets the new and deleted delegation requests from OneList and process them in the source system;
The adapter sends the full list of current delegations in the source system to OneList for OneList to maintain its delegation records.
The sync process can be triggered by an event or through scheduled jobs. It can be a single job calling the three APIs or the SyncDelegations API can be separated into a different job for performance tuning.
One job design - GetDelegationRequests + PostDelegationOutcome + SyncDelegations;
Two job design - GetDelegationRequests + PostDelegationOutcome and SyncDelegations;
The following diagram shows the required interaction between the source system and OneList for the delegation sync process.