Apply relationship rules when CRM deletes a contact or organization
What It Does
Platform exposes transactional endpoint cleanup for CRM’s deletion contract. The function applies restrictions and cascades without committing independently of the record owner.
The Flow
When Something Fails
The owner must map the function refusal and roll back its failed transaction. Platform changes cannot commit independently of that transaction. Raise the policy, lock or depth refusal for the owner to handle. The owner transaction remains failed until rolled back. Abort the transaction if any cascade work fails. The preceding committed state survives once the owner rolls back. Reject commit when history attribution is absent. Neither deletion nor Platform effects commit on history failure. Retry waiting outbox work on later successful runs. Delivery may lag, and detached files remain without Platform cleanup.
Open Design Questions
The record owner’s call sites are outside the supplied repositories; this is the verified Platform contract and documented caller obligation.