Sync Logitech room deletions to Salesforce
Developer ToolRecipe ToolsWorkatoCRMMarketingUtilities
What it does
When Amazon SNS sends a message about a room deletion event, this automation searches Salesforce for matching Services Account Sync Relations. It deletes those records when found so the two systems stay in sync.
Who it's for
Operations teams who need to remove Salesforce records when Logitech rooms are deleted.
How teams use this
Remove orphaned Salesforce sync records
When a room is deleted in Logitech, find and delete its corresponding Services Account Sync Relation in Salesforce so no orphaned records remain.
Audit room changes across systems
Add a logging step to capture each deletion event details so the team can track which rooms were removed and when for visibility into system changes.
Notify admins of bulk deletions
Include a condition to check Room Count and add a Slack notification step so admins receive an alert when multiple rooms are deleted in a single sync run.
How it works
- Receive room deletion event. Amazon SNS sends a real-time message when a room is deleted in Logitech, including the entity, event type, and room count for that deletion.
- Extract event details. Parse the SNS message to create variables for Room Name, Entity, organizationId, Event, and Room Count so the automation can evaluate each event.
- Find matching sync relations. Search Salesforce for Services Account Sync Relations where the entity matches and the event equals DESTROY using a SOQL query WHERE clause.
- Delete the sync relation. Remove the Services Account Sync Relation from Salesforce when a matching record is found, keeping the two systems in sync.