Prerequisites
Before installing the integration, make sure you have:
Salesforce Administrator Access with permissions to install managed packages and modify page layouts.
An active ClickSend Account with an available SMS balance or credit line.
Your ClickSend API Username and API Key (found under Account → API Credentials).
The Package Installation URL provided by ClickSend.
Installing the package
Log into your Salesforce production or sandbox org.
Paste the installation URL into your browser address bar and press Enter:
https://login.salesforce.com/packaging/installPackage.apexp?p0=04tXXXXXXXXXXX
On the package installation screen, select Install for All Users.
Check the box to approve third-party API access and click Yes, grant access.
Click Install. (Installation typically takes one to three minutes).
Salesforce will send an email confirmation once the installation completes.
Verify the install: Go to Setup → Installed Packages and verify that ClickSend SMS appears in your list with the latest version number.
Configuring API credentials
Connect the plugin to your ClickSend account before sending any messages:
Open the Salesforce App Launcher (the nine-dot icon in the top left) and search for ClickSend SMS.
Select the ClickSend Settings tab.
Click New (or click Edit if a record already exists).
Fill in the following settings:
Field | What to Enter |
Name | A label for this account (e.g., your ClickSend email address) |
Username | Your ClickSend account username (usually your email address) |
API Key | Your ClickSend API key (copy carefully with no spaces) |
Is Default | Tick this box if this should be your primary sending account |
5. Click Save.
Verification: If the credentials fail to validate, double-check your API key inside your ClickSend Dashboard under Account → API Credentials.
Setting up the SMS Composer on contact records
The ClickSend SMS Composer component allows users to draft and send SMS directly from a Contact's record page.
Note: The SMS Composer component is designed for Contact records only.
Open any Contact record in your org.
Click the Setup Gear icon (⚙) in the top right and select Edit Page.
In the Lightning App Builder left sidebar, scroll down to the Custom components section.
Locate the ClickSend SMS Composer component.
Drag and drop it onto the page layout (recommended: right column or above/below the record details).
Click Save.
In the activation modal, select Activate → Assign as Org Default → Save.
Click ← Back to return to the Contact record.
Setting up the SMS Conversation View (Inbox) on contact records
The ClickSend SMS Inbox provides a live, two-way conversational thread showing both inbound and outbound messages.
Open any Contact record.
Click Setup (⚙) → Edit Page.
In the Custom section of the left component palette, find ClickSend SMS Inbox.
Drag it onto the page canvas (ideally directly adjacent to or beneath the ClickSend SMS Composer).
Click Save. (If already activated as Org Default, you do not need to re-activate).
Click ← Back to exit Lightning App Builder.
Features of the Inbox:
Outbound Messages: Displayed on the right in dark bubbles.
Inbound Replies: Displayed on the left in light bubbles.
Timestamps: Every message displays date and time.
Auto-Refresh: The conversation pane refreshes every 30 seconds automatically without requiring a browser reload.
Setting up the SMS Quick Action
Add the Send SMS action button to the Contact highlights panel for quick, pop-up sending:
Go to Setup → Object Manager → Contact → Page Layouts.
Click Edit on your active Contact page layout.
In the top palette, select Mobile & Lightning Actions.
Locate the Send SMS action.
Drag Send SMS into the Salesforce Mobile and Lightning Experience Actions section.
Click Save.
Important: Do not add the action named Send SMS (Legacy). Ensure you select only Send SMS.
Sending SMS from a contact record
Method A: using the SMS Composer panel
Open the Contact record.
Locate the ClickSend SMS Composer panel on the page.
The recipient's phone number auto-fills from the
MobilePhoneorPhonefield.Select your ClickSend Account (if using multiple accounts).
(Optional) Select a From Number (dedicated number or approved alphanumeric sender ID). Leave blank to use your account default.
Type your message. The character and segment counter updates automatically in real time.
Click Send.
Method B: using the Quick Action modal
Open the Contact record.
Click the Send SMS button in the top action bar.
Fill out the Account, From Number, and Message fields.
Click Send.
Tracking sent messages:
Inbox Component: Displays the message bubble instantly in the conversation thread.
Related List: Creates a ClickSend Message record under the Contact with status, direction, and timestamp details.
Setting up inbound SMS (two-way messaging)
To receive customer replies back into Salesforce, configure a public Salesforce Site to act as a webhook receiver.
Step 1: Register a Salesforce Site domain (if not already done)
Go to Setup → search for Sites in Quick Find → select Sites.
If prompted to register a domain, enter a subdomain (e.g.,
yourcompany-sms) and click Register My Salesforce Site Domain.
Step 2: Create the inbound site
On the Sites setup page, click New.
Fill in the site details:
Site Label:
ClickSend SMS InboundSite Name:
ClickSend_SMS_InboundActive: Checked (Yes)
Active Site Home Page: Select any default page (e.g.,
InMaintenanceorUnderConstruction)
Click Save, then click Activate on the site detail page.
Step 3: Grant guest user Apex class access
On the site detail page, click Public Access Settings.
Scroll to the Enabled Apex Class Access section and click Edit.
Move
ClickSendSMS.ClickSendInboundControllerfrom Available to Enabled.Click Save.
Step 4: Register the webhook with ClickSend
Navigate to the ClickSend Settings tab in the App Launcher.
Open your configured ClickSend Settings record.
Click Generate Token. The generated URL will follow this pattern:
https://[your-domain].my.salesforce-sites.com/services/apexrest/ClickSendSMS/clicksend
Click Register with ClickSend. This registers the webhook endpoint with ClickSend to route inbound replies directly to your Salesforce org.
Critical check: The webhook URL must contain .salesforce-sites.com (public site), not .salesforce.com (internal domain). If it contains .salesforce.com, your site is inactive or missing.
Bulk SMS from list views (contacts & leads)
Send mass SMS directly from Contact or Lead list views using Salesforce batch processing.
One-time setup: enable the button on list views
Go to Setup → Object Manager → Contact (or Lead).
Click Search Layouts (or List View Button Layout).
Click Edit next to List View.
Under Custom Buttons, move Send SMS into Selected Buttons.
Click Save.
How to send bulk SMS:
Navigate to the Contacts or Leads tab and choose a list view.
Select the contacts using the checkboxes, or check the header box to select the page.
Click the Send SMS button in the list header.
Select your ClickSend Account, choose an optional From Number, and enter your message.
Click Send.
Good to know: Recipients without a valid phone number (Phone and MobilePhone blank) are automatically skipped without halting the batch job.
Salesforce Flow automation
Automate SMS messaging within Screen Flows, Record-Triggered Flows, and Scheduled Flows using ClickSend's native Flow actions.
ClickSend Account Picker (screen component)
Drop the ClickSend Account Picker onto any Screen element to let users choose which ClickSend account to send from. It outputs the selected account's username.
Single SMS action (Send SMS via ClickSend)
Sends a single text message to one phone number or Contact record.
Inputs:
Parameter | Type | Required | Description |
Account Username | Text | Yes | ClickSend username/email (use output from Account Picker) |
Phone Number / Contact ID | Text / ID | Yes | Target phone number or Contact ID |
Message Body | Text | Yes | SMS body copy |
From Number | Text | No | Dedicated sender number or approved alphanumeric tag |
Outputs:
Output Variable | Type | Description |
| Boolean | Returns |
| Text | Returns error description if the send failed |
Bulk SMS action (Send Bulk SMS via ClickSend)
Sends one message to a collection of Contacts in a single API call after collecting IDs with a loop.
⚠️ Best Practice: Place the Send Bulk SMS action after the Loop finishes (on the After Last path). Never place the action inside the loop body, as doing so burns through API limits and triggers per-record calls.
Recommended bulk flow architecture:
[Screen: Account Picker] ↓ [Screen: Message Input] ↓ [Get Records: Target Contacts] ↓ [Loop: Target Contacts] ──(For Each)──> [Assignment: Add Contact.Id to Text Collection] ↓ (After Last) [Action: Send Bulk SMS via ClickSend] ↓ [Screen: Results Summary]
Bulk limits:
Flow Get Records Limit: Maximum 2,000 records per flow execution.
ClickSend API Limit: Maximum 1,000 recipients per single bulk payload.
For lists exceeding 2,000 recipients, use List View Bulk SMS instead.
Multi-account support
If your business manages multiple ClickSend sub-accounts (e.g., across departments, regions, or brands):
Go to App Launcher → ClickSend Settings.
Click New to configure each additional account.
Give each record a recognizable Name (e.g.,
Support Desk,Sales AU).Ensure Is Default is ticked for exactly one account.
In the SMS Composer or Flow Picker, users can switch between accounts. Sender IDs and phone numbers will update dynamically according to the selected account.
Legacy quick actions
You may notice buttons labelled Send SMS (Legacy) in your layout palette.
Item | Status | Recommendation |
Send SMS | Current & Supported | Add to all Contact page layouts |
Send SMS (Legacy) | Deprecated | Remove from layouts to avoid confusion |
Why are legacy actions still there? Salesforce packaging rules require deprecated components to remain in managed packages during upgrades to prevent breaking older layouts.
How to remove legacy actions:
Go to Setup → Object Manager → Contact (and Lead) → Page Layouts.
Click Edit on your page layout.
Under Salesforce Mobile and Lightning Experience Actions, drag Send SMS (Legacy) out of the action bar back to the top palette.
Click Save.
Troubleshooting & FAQs
The SMS Composer or Inbox component is missing from the record
The SMS Composer or Inbox component is missing from the record
Cause: Components are not auto-added upon package installation.
Solution: Follow Sections 4 and 5 using Lightning App Builder to place the components on your Contact layout.
Note: These components only exist for the Contact object.
The "Send SMS" button is missing from list views
The "Send SMS" button is missing from list views
Solution: Navigate to Setup → Object Manager → Contact/Lead → Search Layouts → List View and add Send SMS to the Selected Buttons list.
Inbound replies are not appearing in the inbox
Inbound replies are not appearing in the inbox
Check the following in order:
Webhook Registration: In ClickSend Settings, confirm the token was generated and registered successfully.
Site Status: In Setup → Sites, make sure
ClickSend SMS Inboundis set to Active.Guest User Security: In Site Public Access Settings → Apex Class Access, verify
ClickSendSMS.ClickSendInboundControlleris enabled.Number Routing: In your ClickSend Dashboard, confirm your inbound rule routes replies to the registered webhook endpoint.
"Session expired or invalid" error on webhook URL
"Session expired or invalid" error on webhook URL
Cause: The URL was generated using an internal domain (
.salesforce.com) rather than the public site domain.Solution: Activate your Salesforce Site first, then return to ClickSend Settings and click Generate Token again. The URL should end in
.salesforce-sites.com.
Quick reference cheat sheet
Task | Navigation Path |
Install Package | Paste managed package install URL → Install for All Users |
Add API Credentials | App Launcher → ClickSend SMS → ClickSend Settings → New |
Add Composer to Page | Contact Record → Gear (⚙) → Edit Page → Drag ClickSend SMS Composer |
Add Inbox to Page | Contact Record → Gear (⚙) → Edit Page → Drag ClickSend SMS Inbox |
Add Quick Action | Setup → Object Manager → Contact → Page Layouts → Add Send SMS |
Enable Bulk SMS | Setup → Object Manager → Contact/Lead → Search Layouts → List View → Add Send SMS |
Configure Inbound Webhook | Setup → Sites → Create Site & Grant Apex Access → Register in ClickSend Settings |
Send Single SMS via Flow | Flow Builder → Screen (Account Picker) → Action: Send SMS via ClickSend |
Send Bulk SMS via Flow | Flow Builder → Loop Contact IDs → After Last → Action: Send Bulk SMS via ClickSend |
