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.
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
"Hey there" & "" & "Please update the Lead Owner for " & Lead.Company & "<a id="" href="https://mysalesforce.lightning.force.com/lightning/r/lead/"" target=""_blank""> here</a>"& "" & "Thanks" & ""
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.
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.