Create a Callout Integration
Administrators can create a callout integration setting to send and receive data from a third-party API.
Create Callout Integration Setting
- In the tab bar, click App Launcher, or in Salesforce Classic, click Nimble AMS, Staff View, Button, All Tabs.
- Click Integration Settings.
Click New.
In
Record Type
, selectCallout
.- In
Name
, enter a name in pascal case to identify the integration. - In
Description
, enter a description you can reference to understand the integration setting's purpose. In
Authentication Key
, enter a secure authentication key.We recommend using a unique 256-bit WEP authentication key for each integration setting. You can generate a random key, using a random key generator such as Random Key Generator (external).
In
Class
, enter the name of the Apex class that implements the callouts to the third-party API.You should create a new Apex class for each callout integration setting. An Apex class can be created through development effort.
Status
is populated.If you want to record log detail for the integration setting, in
Logging Level
, select the log detail level. More information about the level of detail stored can be found on the Understanding Logging Level page.To set the number of days the integration callout is retained within Nimble AMS, set the Archive Schedule Information:
In
Archive Format
, enter the Apex scheduler expression. This field controls the frequency with which the archiving scheduled job is executed. See Apex Scheduler (external) to learn more about Apex schedules.In
Archive Completed Storage Days
, enter the number of days the integration callouts with a Status ofCompleted
will be retained.In
Archive Failed Storage Days
, enter the number of days the integration callouts with a Status ofFailed
will be retained.Deselect
Archive Active
.The archiving scheduled job must be created before it is activated. Any changes to the archiving scheduled job must be made while the archiving job is inactive.
Click Save.
Click Edit.
Select
Archive Active
.Click Save.
Create Callout Integration Parameters
Administrators must create integration parameters so the integration callout worker can communicate with the third-party API. Administrators can reconfigure an integration parameter at any time to match any changes with the third-party API.
- In the tab bar, click App Launcher, or in Salesforce Classic, click Nimble AMS, Staff View, Button, All Tabs.
- Click Integration Settings.
- Select a list view—like All—and click Go!
- Click the name of the integration setting to which you want to add an integration parameter.
From the Inbound Integration Settings related list, click New Integration Parameter.
Integration Setting
is populated.In
Key
, enter a word, or words, that identify the integration callout Apex class will use to retrieve to theValue
.In
Value
, enter the text to be used in the integration callout Apex class when theKey
is referenced.Click Save.
Create Integration Callout Worker
- In the tab bar, click App Launcher, or in Salesforce Classic, click Nimble AMS, Staff View, Button, All Tabs.
- Click Integration Settings.
- Select a list view—like All Callout Integrations—and click Go!
- Click the name of the integration setting to which you want to add an integration callout worker.
From the Integration Callout Workers related list, click New Integration Callout Worker.
Integration Setting
is populated.In Worker Schedule, enter the Apex scheduler expression. This field controls the frequency with which the integration callout worker is executed. See Apex Scheduler to learn how to configure this field.
Deselect Worker Active.
The integration callout worker must first be created before it is activated. Changes to the integration callout worker must be made while the integration callout worker is inactive.
Click Save.
- Click Edit.
Select Worker Active to activate the integration callout worker.
- Click Save.
Create Integration Response Worker
- In the tab bar, click App Launcher, or in Salesforce Classic, click Nimble AMS, Staff View, Button, All Tabs.
- Click Integration Settings.
- Select a list view—like All Callout Integrations—and click Go!
- Click the name of the integration setting to which you want to add an integration response worker.
From the Integration Response Workers related list, click New Integration Response Worker.
Integration Setting
is populated.In
Worker Schedule
, enter the Apex scheduler expression. This field controls the frequency with which the integration response worker is executed. See Apex Scheduler to learn how to configure this field.In
Worker Batch Size
, enter the number of integration callouts with a Status ofPending
the integration response worker will processes at a time.Deselect
Worker Active
.The integration response worker must first be created before it is activated. Changes to the integration response worker must be made while the integration response worker is inactive.
Click Save.
- Click Edit.
Select
Worker Active
to activate the integration response worker.- Click Save.