For the complete documentation index, see llms.txt. This page is also available as Markdown.
Salesforce Integration
Overview
Salesforce is the world's leading CRM platform, used by sales, support, and operations teams to manage customer relationships, cases, and workflows. By adding a lightweight Apex Class and Apex Trigger to your Salesforce org, you can automatically forward Case alerts to ITOC360 whenever a case is created or updated — and resolve them automatically when the case is closed.
This integration uses Salesforce's native Apex callout mechanism to send a structured JSON payload to the ITOC360 webhook endpoint.
Provider Configuration & Mapping
ITOC360 uses the event_type field in the payload to determine the alert type.
Payload Value
ITOC360 Type
ALERT
ALERT
RESOLVE
RESOLVE
Priority is mapped from the priority field on the Salesforce Case object:
Salesforce Case Priority
ITOC360 Priority
Low
LOW
Medium
MEDIUM
High
HIGH
Critical
CRITICAL
Setup Instructions
Step 1: Get Your Webhook URL and Token
Log in to your ITOC360 platform.
Go to Sources → Add Source.
Select Salesforce as your provider.
Save the configuration and copy the generated Token.
Your webhook URL will be in the following format:
Step 2: Add ITOC360 as a Remote Site in Salesforce
Salesforce blocks outbound HTTP calls to external domains by default. You must allowlist the ITOC360 domain before the Apex trigger can send requests.
In Salesforce, click the gear icon (⚙️) in the top right and select Setup.
In the Quick Find search box, type Remote Site Settings and open it.
Click New Remote Site.
Fill in the fields:
Remote Site Name:ITOC360
Remote Site URL:https://api.itoc360.app
Click Save.
Step 3: Create the Apex Class
The Apex Class handles the outbound HTTP callout to ITOC360. It runs asynchronously to avoid blocking Salesforce transactions.
Click the gear icon and select Developer Console.
In the Developer Console, go to File → New → Apex Class.
Name the class ITOC360Class and click OK.
Replace the contents with the following code and click Save:
Step 4: Create the Apex Trigger
The Apex Trigger fires on Case insert and update events. It builds the JSON payload and calls the Apex Class to send it to ITOC360.
In the Developer Console, go to File → New → Apex Trigger.
Name the trigger ITOC360CaseTrigger, set the sObject to Case, and click Submit.
Replace the contents with the following code.
Replace YOUR_TOKEN with the token you copied in Step 1, then click Save:
Step 5: Test the Integration
In Salesforce, go to the Cases object and create a new Case:
Subject: Any descriptive title
Priority: High
Status: New
Save the case.
Log in to ITOC360 and go to Alerts — the new case should appear as an active alert with the correct priority.
To test automatic resolution, open the case in Salesforce and change its Status to Closed, then save.
The corresponding alert in ITOC360 should automatically resolve.
Troubleshooting
Alerts are not appearing in ITOC360
Verify that the Remote Site Settings entry for https://api.itoc360.app is saved and active.
Check the Salesforce Debug Logs: go to Setup → Environment → Logs → Debug Logs, add your user as a traced entity, and recreate the case. Look for ITOC360 Response in the log output.
Make sure the token in the trigger matches the one generated in your ITOC360 source.
Debug Logs are empty
In Debug Logs, check that the Expiration Date for your traced user is set in the future. Edit and extend it if needed, then recreate the case.