Short Link for Texting


Short links are the alternate link for the long links. If you want to send long links over the text, then you can convert long link into short link and send it over SMS. You can generate short links in two ways at Salesforce.

1. Salesforce.

2. Bitly

 

1. Salesforce:

We are using the Salesforce sites to make the short link here link will not be much shorter. If you do not want to use API call, then you can use.

Please update your site url at Salesforce > ValueText from app menu > ValueText setup tab > Short Link settings sections > Update site url.

 

2. Bitly :

We have integration with bitly, you can sign up one account and generate the short links with the help of that.

Please update your Bitly Access token at Salesforce > ValueText from app menu > ValueText setup tab > Short Link settings sections > Update your bitly account access token and save it.

Important: Make sure to add https://api-ssl.bitly.com at Remote Site settings.

You can generate the link manually or automation by using process builder, flow and apex.

 

Manual Process:

Step 1: Open short link object at Salesforce

Step 2: Click on new

Step 3: Enter the long URL (like as shown in below)

Step 4: Select the process service as Salesforce or Bitly

Manual link creation

Step 5: Click on save and You will see generated link at short URL field

 

Automation

Automation:

You can generate the short links from process builder, flow or apex by using invocable methods or creating a record directly on Short Link object

Step 1: Create Process Builder and define your flow condition when it has to fire

Step 2: ChooseApex under IMMEDIATE ACTIONS or SCHEDULED ACTIONS

Step 3: Select rsplus__Short Link Creation from search box

Step 4: Define 5 set of fields as below image and active the flow to start

 

Automation

Long URL: Long URL which you have to convert to short.

URL Name: Nick name of the Long url

Related To: Pass the record id if you want to if you want to see in the related list

Return key with "Related To" or "URL": You must pass blank if you are calling from process builder. This helps in apex to capture the return values. This field is no use if you are using Bitly because it is an API call so it will not return the sort link immediately.

Process with Salesforce or Bitly: Define 5 set of fields as below image and active the flow to start

 

FAQ:

  • Creation of short links up to 200 only at a time
  • Bitly Service create up to 50 short links at a time and may change based on Bilty account type you have.