Salesforce Integration
Integrate Salesforce events with ilert to notify teams of key activities or failures, ensuring critical alerts reach responders quickly.
By connecting Salesforce with ilert, technical signals are sent to on-call teams immediately. This allows rapid investigation of disruptions in CRM processes or data flows, ensuring fast mitigation.
In ilert: Create a Salesforce alert source
Go to Alerting → Alert sources and click Create new alert source.
Search for Salesforce, click its tile, and click Next.
Give your alert source a name, optionally assign teams, and click Next.
Choose who gets notified: select Use existing escalation policy and pick a policy, or Generate new escalation policy to start with a basic one that notifies you first. Click Next.

Pick an existing escalation policy, or generate a basic one without leaving the wizard. Select Default grouping and click Continue setup. It groups events by the alert key the integration sets; the other grouping options are easier to judge once events are arriving.
The next page shows more settings, such as notification priority and alert templates. Click Finish setup for now; you can change them later.
On the final page, ilert shows the integration key and URL for this alert source. You will need them later in this guide.
In Salesforce
This Documentation is based on the new Salesforce Lightning, new UI from Salesforce
Navigate to Developer Console by clicking the Settings icon and then click the Developer Console.

In Developer Console page select File -> New -> Apex Class and copy the following and save it as ilertClass.apxc, then click Save.
Create a trigger by clicking File -> New -> Apex Trigger and copy the following and save it as ilertTrigger.apxt. Please make sure that the API_KEY and the URL is replaced based on the relevant API_KEY and URL that were received from ilert side.
In order to send to ilert, the domain needs to be allowlisted, back to the Salesforce page and select Setup from settings and go to Setup -> Security -> Remote Site Settings page.

Add a new remote site name it "iLert" and then paste the URL copied https://api.ilert.com to the "Remote Site URL" field and Save.
To test this, simply create a Case in Salesforce.
FAQ
How to Debug in case something is not working? In order to Debug this, you need to add
System.debug()either on the trigger or the class. To view this just navigate to Gear Icon -> Setup -> Environment -> Logs -> Debug Logs\I don't see my logs, why? Make sure that the Expiration Date settings in the Debug Logs settings are set in the future, just edit it if it was done in the past, and create Case again.

Last updated
Was this helpful?