AdvoLogix Help

Apex Invocable Methods Available Within the Integration

Updated on

AdvoLogix provides a wide range of Apex invocable methods that allow you to easily execute different CT SOP related actions as part of your flow, process builder, or from an Apex class.

List of Available Apex Invocable Methods

There are many different CT SOP related actions that can be automated with the AdvoLogix CT SOP Integration. Here you can find the list of all available apex methods: 

  • Create a Matter (SOPService.createMatter)
  • Acknowledge SOP (SOPServiceAcknowledgements.acknowledgeSOP)

Adding an Apex method to a flow is a very simple task. You just need to drag and drop or add an Action item into the Flow Builder canvas. If you filter the actions by Category and select the CT SOP, you will find all AdvoLogix provided apex actions available under the Action lookup field.

The detailed usage of the above mentioned Apex actions is outlined below:

Create Matter
Using the Apex Method in a Salesforce Flow

Drag and drop or add an Action item in the Flow Builder canvas. Filter the actions by Category, select the CT SOP, and select Create Matter under the Action lookup field.

Input Values
  • SOP Log Record ID - Provide the SOP Log record's record Id value here.
  • Record Type ID - [Optional] Provide your matter record's record type id value here, it will be used for newly generated matters from this method.
Output Values

When the Matter has been created successfully, this method will return apex data-type variable output. The response will contain two output variables, status and body. The status will be true or false based on the execution of the method and the body will give your newly created matter's record id or the error message encountered within the process.

Using the Apex Method in an Apex Class

Example apex script:

advCtSop.SOPService.InputWrapper req1 = new advCtSop.SOPService.InputWrapper();
req1.recordId = '0010C00000WxO5fUAF';
advCtSop.SOPService.InputWrapper[] reqList = new advCtSop.SOPService.InputWrapper{ req1 };

advCtSop.SOPService.ResultWrapper[] resp = advCtSop.SOPService.ResultWrapper.createMatter( reqList );
system.debug('Create Matter Response :: '+resp[0]);
Acknowledge SOP
Using the Apex Method in a Salesforce Flow

Drag and drop or add an Action item in the Flow Builder canvas. Filter the actions by Category, select the CT SOP, and select Acknowledge SOP under the Action lookup field.

Input Values
  • Log ID - Provide the CT SOP's Log ID value here.
Output Values

When the matter has been created successfully, this method will return apex data-type variable output. The response may contain two output variables, receiptNumber and error. The receiptNumber will contain the acknowledgement receipt number, and can be used to inquire about the acknowledgement from CT and error will give you any error message that may have been encountered within the execution process.

Using the Apex Method in an Apex Class

Example apex script:

advCtSop.SOPServiceAcknowledgements.InputWrapper req1 = new advCtSop.SOPServiceAcknowledgements.InputWrapper();
req1.logId = '542025301';
advCtSop.SOPServiceAcknowledgements.InputWrapper[] reqList = new advCtSop.SOPServiceAcknowledgements.InputWrapper{ req1 };

advCtSop.SOPServiceAcknowledgements.ResultWrapper[] resp = advCtSop.SOPServiceAcknowledgements.ResultWrapper.acknowledgeSOP( reqList );
system.debug('Create Matter Response :: '+resp[0]);
Previous Article SOP Log Field Mapping Templates
Next Article Getting Started with the CT SOP Integration
Still need help? Click here!
AdvoLogix® is a registered trademark of AdvoLogix.com LLC a Texas Limited Liability Company. All references to other trademarks belonging to third parties that appear on this website, documentation, or other materials shall be understood to refer to those registered trademarks owned by others, and not to any trademark belonging to AdvoLogix. Otherwise, all material herein is the copyright of AdvoLogix.com LLC. All Rights Reserved.