HTML in Salesforce Quick Actions

HTML in Salesforce Quick Actions

Have you ever wondered how to add some basic HTML in Salesforce Quick Actions? Even add a link to that record? Well, look no further. Here’s my how-to-guide. The use case for the following came about when internal users needed to request record ownership via email.

Step 1

Go to Setup > Object where the Quick Action is required. Create New Action.

Once the email action has been created we need to create 2 predefined field values. Subject and HTML Body.

Create the email Quick Action
Set the Subject Heading
Predefine the Template

Use the follwing HTML

[php]"Hey there" & "" &

&quot;Please update the Lead Owner for &quot; & Lead.Company & &quot;<a id=&quot;&quot; href=&quot;https://mysalesforce.lightning.force.com/lightning/r/lead/&quot;&quot; target=&quot;&quot;_blank&quot;&quot;> here</a>&quot;& &quot;&quot; &

&quot;Thanks&quot; & &quot;&quot;[/php]

And when saved will look like the below.

**For the URL just replace https://mysalesforce.lightning.force.com with your ORGs domain.

Great. We now have a predefined subject, and body for our email.

The next steps are to add the Quick Action to the Lead page layout.

Step 2

Find a record where you want to use the Quick Action to now see the wonderful build you have just carried out.

Let’s now use the action to request record ownership change by sending the email.

Once received in your inbox, the email will look like the below.

My example is a basic use case for using HTML in Salesforce Quick Actions that can be easily expanded out for your own requirements. Thank you for reading and hopefully, you found this useful in some way to help you achieve your goal.

Find out more

We’ve been in the Sales and Marketing Strategy game for longer than we care to remember, but we pride ourselves on the combined exposure our team has had to different B2B markets globally, and the strategic services we offer your business as a result.

If you are looking for Salesforce / Pardot Support with an existing Org or want to know if Salesforce or Pardot is right for you, get in touch with us for a free consultation or simply a chat. We regularly work alongside Start-ups and Enterprises alike, so we’re certain we will find you a path to growth, whatever your plans.

We are open Monday-Friday 9-6pm and have open channels for communication either on our LinkedIn, Twitter or you can simply give us a call on 020 8106 8500.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.