Digital.ai Agility— SalesForce Integration
Digital.ai Agility Connect supports integration between Digital.ai Agility and (Undefined variable: Global Variables.sfdc.long).
Agility Connect supports the following (Undefined variable: Global Variables.sfdc.long) assets:
- Case
- Opportunity
- Lead
- Account
- Custom Assets
Salesforce project mapping is not supported. You must select "No Projects" from the Projects drop-down list when you integrate Digital.ai Agility—(Undefined variable: Global Variables.sfdc.long).
Unlike other tools, Salesforce uses specific fields such as Consumer Key, Consumer Secret, Security Token, and so on for authentication. You must gather values for such fields from Salesforce and configure the Salesforce plugin in Agility Connect. For more information, see Configuring Agility Connect Service.
You must add Agility Connect as a connected app in Salesforce to generate the Consumer Key and Consumer Secret. You must also enable OAuth for API integration and enable Device Flow while doing so. For more information about (Undefined variable: Global Variables.sfdc.long) Connected Apps, see Create a Connected App.
Webhook configuration in Salesforce
In addition, you must configure the webhooks using the webhook scripts.
-
Download the sfdc_webhook_script.zip file and unzip it.
-
Edit the DAiUtilities.cls file and add the endpoint URL to the request.setEndpoint function call and save the file. Here's an example:
-
Log on to Salesforce.
-
Go to Admin > Developer Console.
-
Create an Apex Class file in Salesforce for every .clsfile in the sfdc_webhook_scripts.zip file you downloaded.
-
Select File > New > Apex Class, type the name of the Apex Class (for example, DAiUtilities), and click OK.
-
Open the DAiUtilities.cls file that you downloaded, copy its content and paste it in the DAiUtilities Apex Class file you just created in Salesforce.
-
Repeat steps 4 and 5 for TriggerHandlerClass.cls file.
-
Create an Apex Trigger in Salesforce for every .tgr file in thesfdc_webhook_scripts.zip file you downloaded.
-
Select File > New > Apex Trigger, type a file name and sObject. For example, if Account_webhook.tgris the file name, Account becomes the sObject.
-
Open the Account_webhook.tgrfile that you downloaded, copy its content and paste it in the Account_webhook Apex Trigger file you just created in Salesforce.
-
Repeat steps 8 and 9 for all the .tgr files in the downloaded zip file.
-
For Custom Assets that you have added manually, you have to create an Apex trigger file.
The content of the Apex file is similar to any existing apex Webhook trigger file like Account or Cases.
To Add Remote Setting for Agility Connect and (Undefined variable: Global Variables.sfdc.short), perform the following actions.
- Log in to Salesforce, click the Gear icon and select Setup.
- In the Search bar type Remote and navigate to Security > Remote Site Settings.
- Click on New Remote Site.
- Enter the Remote Site Name and enter the Agility Sync URL in the Remote Site URL text box.
- Click Save.
By default the Active Check box is selected.
A connection is established between Agility Sync instance and SFDC.
Refer to the following guides and build your Agility —Salesforce integration.
Digital.ai Agility to Salesforce integration Feature Matrix
See Agility Connect Feature Matrix to know the list of Agility Connect features that are supported for Salesforce integration.