Archive a lead

Archives a lead by creating outbox events for database and Monday.com synchronization. The function queues archive operations based on kill switch settings (SYNC_TO_DATABASE and SYNC_TO_MONDAY). It updates the lead status in the temp_jobs table and triggers a Monday.com archive action via the rm_monday service.

Language
Response
Click Try It! to start a request and see the response here!