Use Case: Delete Salesforce Opportunity After Contract Cancellation
Business Context
When a contract is canceled, any associated Salesforce Opportunity becomes invalid and should be removed to keep the sales pipeline accurate. Automating this cleanup avoids manual effort, prevents reporting inaccuracies, and ensures the pipeline reflects only active, viable opportunities.
Overview
This use case guides administrators on configuring a Conga Workflow that automatically deletes the Salesforce Opportunity linked to a contract once its status changes to Canceled. The workflow uses a record‑trigger event, an email notification activity, and an HTTP Callout to the Salesforce API. Required inputs include Salesforce API credentials and the Opportunity ID stored on the contract.
Scenario
When a contract's Status is updated to Canceled, the workflow triggers automatically. It first sends an email notification to the assigned sales representative, informing them that the contract has been canceled and the related Opportunity will be removed. Then, using a configured external service, the workflow performs an API call to Salesforce to delete the Opportunity associated with the contract record. This ensures the sales pipeline remains clean without requiring manual intervention.
- Salesforce API credentials: Client ID, Client Secret, Access Token, and Endpoint URL.
- The Opportunity ID is available on the Contract record (e.g.,
Contract.OpportunityID__c). - The Contract Status field includes a clearly defined Canceled status value.
An email notification is sent to the assigned sales representative.
The linked Salesforce Opportunity is automatically deleted using the Opportunity ID.
