Download PDF
Download page Cancel Conga Sign Transactions in Bulk.
Cancel Conga Sign Transactions in Bulk
Conga Sign provides users the capability to cancel Conga Sign Transaction in bulk by leveraging Apex code. Specifically, Salesforce administrators and developers can use the aptx_cancelTransactionsInvocable Apex Class as a sub Flow within a Process Builder or Flow solution to trigger bulk transaction cancellations.
The aptx_cancelTransactionsInvocable Apex Class appears as Cancel Conga Sign Transactions when selecting it as in Apex Action in Flow Builder.
Additionally, administrators and developers can leverage the apxt_bulkTransactionService Apex Class to trigger bulk cancellations through the REST API.
Located below are tips, recommendations, and examples on using Apex to cancel Conga Sign Transactions in bulk.
Bulk Cancellation Scenarios Using Process Builder to Manage Conga Sign Transactions
- Cancel any incomplete Conga Sign Transactions when a Campaign status changes to Complete.
- Cancel any incomplete Conga Sign Transactions when an Opportunity is Won.
- Cancel any incomplete Conga Sign Transactions when a Campaign Offering Price change occurs.
Cancel related Conga Sign Transactions when one Conga Sign Transaction is completed.
Salesforce solutions, such as Process Builder and Flows, leveraging Apex code are outside of the scope of Conga Support. It is highly suggested to only create custom solutions leveraging Apex Classes if you have prior experience with using Apex in Salesforce.
Common Steps to Manage and Bulk Cancel Conga Sign Transaction with Process Builder
- Define a Process Builder or Flow to trigger off of data changes to the standard or custom Salesforce object data or workflow state.
- Connect the Process Builder trigger action to the appropriate Flow for that use case.
- Follow Salesforce Best Practices for building Flows.
- For each of the different scenarios, the input, criteria, and rules change, but the steps from a Flow perspective are the same:
- A Get Records Data element that collects the Salesforce or Custom Objects and has the Conga Sign Transactions associated to it
- A Loop Logic element that iterates over the gathered Salesforce or Custom Object(s)
- A second Get Records Data element that finds the Conga Sign Transactions associated with the current iteration object
- A second Loop Logic element that collects the Conga Sign Transaction records that should be cancelled
- An Assignment Logic element that adds the record of the current iteration Conga Sign Transaction record to a Collection Variable Resource
- An ApexAction Interaction element that calls the Sub Flow aptx_cancelTransactionsInvocable Apex Class (Cancel Conga Sign Transactions) and sets the Input Variables:
- In_CongaSignTransactionRecords: [The Collection Variable containing Conga Sign Transaction Records]
- In_SendCancellationEmails: [GlobalConstant or some other variable containing a boolean; True (send recipients cancellation notice), False (do not send)]
- An optional notification
Common Sub Flow - Send List of Transaction Ids to the Conga Sign Cancel Transaction Invocable
This flow is used as a sub flow in each of the example use cases below. Follow Salesforce Best Practices for building Flows.
Input a list of Conga Sign Transaction records.
This list is gathered by other use case Flows as an input into this flow.
- Add a Decision Logic element to check that the input contains records.
- Add an Outcome that there are one or more records from the input and it is not null.
- Connect Start to the Decision.
- Add a Loop logic element to iterate over the Conga Sign Transactions.
- Connect the Decision to the Loop using the appropriate Outcome.
- Add an Assignment Logic element and add each Id to a Text collection variable.
- Connect the Loop to the Assignment with For Each Item and return from the Assignment to the Loop.
- Add an Apex Action Interaction element that calls the Conga Sign Cancel Transactions Invocable method.
- Configure the collected Conga Sign Transaction Id’s as the Input Variable “Conga Sign Transaction Record Ids”.
- Configure either “True” or “False” for the as the Input Variable “Send Cancellation Emails”. This will send cancellation emails to each recipient when set to true.
- (Optional) Configure the output variables to process return value and messages. (Shown As “Notify Cancel Conga Sign Transactions”).
- Connect the Loop to the Apex Action with After Last Item.
- Save and Activate the Flow.
Example: Cancel Any Incomplete Conga Sign Transactions When a Campaign Status Changes to Complete
- Create a new Process Builder.
- Select Campaign as the object.
- Select “when a record is created or edited” for Start the process.
- Add Criteria:
- Criteria Name: Campaign Price Changes
- Criteria for Executing Actions:
- Field: [Campaign].[Status]
- Operator: Equals
- Type: Picklist
- Value: Completed
- Conditions: All of the conditions are met (AND)
- Add Immediate Action:
- Action Type: Flows
- Action Name: Campaign Status Completed Cancel Conga Sign Transactions
- Flow: Campaign Status Completed Cancel Conga Sign Transactions
- Create the Flow using Common Steps, if not already created.
- Get all Opportunities related to the Campaign.
- Get all Conga Sign Transactions from the Opportunities related to the Campaign.
- Collect the Conga Sign Transaction Ids.
- Call the Cancel Conga Sign Transaction Invocable with the list of Conga Sign Transaction Ids.
- Create the Flow using Common Steps, if not already created.
- Set Flow Variables.
- Flow Variable: In_CampaignRecord (the input variable you used in your flow)
- Type: Field Reference
- Value: [Campaign] (select the campaign record that started your process)
- Save and activate the Process Builder.
Example: Cancel Any Incomplete Conga Sign Transactions When a Campaign Offering Price Change Occurs
- Create a new Process Builder.
- Select Campaign as the object.
- Select when a record is created or edited for Start the process.
- Add Criteria:
- Criteria Name: Campaign Price Changes
- Criteria for Executing Actions:
- Field: [Campaign].[OfferingPrice] (Use the field you monitor for price changes)
- Operator: Is Changed
- Type: Boolean
- Value: True
- Conditions: All of the conditions are met (AND)
- Add Immediate Action:
- Action Type: Flows
- Action Name: Campaign Price Change Cancel Conga Sign Transactions
- Flow: Campaign Price Change Cancel Conga Sign Transactions
- Create the Flow using Common Steps, if not already created.
- Get all Opportunities related to the Campaign.
- Get all active Conga Sign Transactions from Opportunities related to the Campaign.
- Collect the Conga Sign Transaction Ids.
- Call the Cancel Conga Sign Transaction Invocable with the of Conga Sign Transaction Ids.
- Create the Flow using Common Steps, if not already created.
- Set Flow Variables:
- Flow Variable: In_CampaignRecord (the input variable you used in your flow)
- Type: Field Reference
- Value: [Campaign] (select the campaign record that started your process)
- Save and activate the Process Builder.
Example: Cancel Related Conga Sign Transactions When One Conga Sign Transaction Is Completed
- Create a new Process Builder.
- Select Conga Sign Transaction as the object.
- Select when a record is created or edited for Start the process.
- Add Criteria:
- Criteria Name: Conga Sign Transaction Completed
- Criteria for Executing Actions:
- Field: [Transaction__c].[Status__c]
- Operator: Equals
- Type: Picklist
- Value: COMPLETE
- Conditions: All of the conditions are met (AND)
- Add Immediate Action:
- Action Type: Flows
- Action Name: Cancel Related Conga Sign Transactions
- Flow: Cancel Related Conga Sign Transactions
- Create the flow using Common Steps if not already created.
- Get all Active Conga Sign Transactions related to the Opportunity.
- Collect the Active Conga Sign Transaction Ids.
- Call the Cancel Conga Sign Transaction Invocable with the list of Active Conga Sign Transaction Ids.
- Create the flow using Common Steps if not already created.
- Set Flow Variables:
- Flow Variable: In_CongaSignTransactionRecord (the input variable you used in your flow)
- Type: Field Reference
- Value: [Transaction__c] (select the Conga Sign Transaction record that started your process)
- Save and activate the Process Builder.
Example: Cancel Any Incomplete Conga Sign Transactions When an Opportunity Is Won
- Create a new Process Builder.
- Select Conga Sign Transaction as the object.
- Select when a record is created or edited for Start the process.
- Add Criteria:
- Criteria Name: Is Opp Won
- Criteria for Executing Actions
- Field: [Opportunity].[Won]
- Operator: Equals
- Type: Boolean
- Value: True
- Conditions: All of the conditions are met (AND)
- Add Immediate Action:
- Action Type: Flows
- Action Name: Gather Active Conga Sign Transactions
- Flow: Gather Conga Sign Transaction Records for Won Opportunity
- Create the flow using Common Steps if not already created
- Get all Active Conga Sign Transactions related to the Opportunity.
- Collect the Active Conga Sign Transaction Ids.
- Call the Cancel Conga Sign Transaction Invocable with the list of Active Conga Sign Transaction Ids.
- Create the flow using Common Steps if not already created
- Set Flow Variables
- Flow Variable: In_AnOpportunity (the input variable you used in your flow)
- Type: Field Reference
- Value: [Opportunity] (select the Opportunity record that started your process)
- Save and activate the Process Builder.