Salesforce - Send SMS via Process Flow

Updated 1 month ago

With Clicksend SMS on Process Flows, you can send SMS from any object. By default, Contact, Lead and Campaign objects are supported. If you would like to send sms to using custom object, follow the below steps. In the this guide, we'll use Case object as an example.

  1. Go to Setup and click Object Manager.
  2. Search Object by Name “ClickSend SMS Log”.
  3. Click Field & Relationships.
  4. Create New Lookup Field in “ClickSend SMS Log” Object. Click New button.
  5. Click New button.
  6. Select Lookup Relationship.
  7. Select Related To object as Case
  8. Enter the Field Label and Field Name and click Next button on top.
  9. Click Next
  10. Click Next
  11. Enter related list label and Save.
  12. Go to Setup and Search “Flow” and navigate to Flow home screen and then click “New Flow” button
  13. Click “Record Triggered Flow” and click Create button
  14. Select Case object
  15. Select “A record is updated” option
  16. Set Entry Condition as “All Conditions Are Met (AND)”
  17. Add the below conditions (Logic is whenever the Case closed SMS will get triggered from flow)
  18. When to run the Flow for Updated Records (Choose: Every time a record is updated and meets the condition requirement)
  19. Optimize the Flow for: (Choose: Actions and Related Records)
  20. Choose: Include a Run Asynchronously path to access an external system after the original transaction for the triggering record is successfully committed
  21. Click Done button
  22. You can see the flow screen and Click on (+) symbol “Run Asynchronously”
  23. You will get the “Add Element” and then click on “Action”
  24. You can select “Type”
  25. You can select Apex Action
  26. Click “Apex Action“ and
  27. Select “Send SMS” from the list as shown below
  28. Enter Label as “Send SMS” and API Name as “Send
  29. Click Include button and then enter SMS text as per your requirement
  30. Click include button and then select !$Record.Id as shown below
  31. Click Include button and then select !$Record.Contact.Phone
  32.    Finish the flow by Done button
  1. You can see as like below
  2. Enter Flow Label and Name and Save it.
  3. Activate the flow by clicking the activate button on top right
  4. Create the Case with new or existing contact

  1. Create a new Case
  2. Click on Edit and change the Status to “Closed” and Save it. (It will trigger the flow and Case Contact will the SMS)
  3. Goto ClickSend SMS Logs Tab and Select List View to “All”
  4. Click on setting icon as shown below
  5. Select Case object name from Available Fields to Visible Fields box.
  6. Save it
  1. You can see the SMS Outbound and Inbound logs for Case object.

How Did We Do?

Powered by HelpDocs (opens in a new tab)