How to Create a Macro in Salesforce

by | Aug 20, 2021 | Salesforce

Ever have those moments in Salesforce where you find yourself doing something you did 5 minutes ago? Open new record, click, type, save, repeat… yawn. If only there was a way to automate it! Sure, those administrators could take care of this for you, but you hate to interrupt them when you know they’re busy building their kingdom in Minecraft. Besides, you’re a Salesforce super user. You’ve got this! You can solve this problem when you create a macro in Salesforce.

Hello Macro: Automating Manual Processes

It is time to kick it up a notch and automate those repetitive tasks. If a task is one you do on-screen, a macro may be a good fit for you. While you can’t automate actions in list views (yet) you can automate most record details.

WARNING: The content you are about to read may leave you excited and passionate. Please use caution when expressing your enthusiasm.

Today we will use the classic example of working a Lead to introduce you to macros. Head over to your Salesforce instance, navigate to a Lead record, and get ready to begin!

In this example we are trying to automate the process of:

1. Logging a call was made into a Lead

2. Scheduling a follow-up task to call the Lead back in 3 days

3. Sending an email to the Lead letting them know we tried to reach them

Creating Your First Macro

The Utility Items (i.e. the bottom navigation bar) in Salesforce is where you will find your “Macros” link. Click on it, then press the “+” icon to fire up a new macro.

Create a macro in salesforce step 1

If you don’t see a “Macros” link it is because the Admin didn’t add it to your app. Unfortunately, you’ll have to submit a request to have it added and start making macros later.

If you were able to find your “Macros” link, sweet! We’re getting there. Fill out the form and save. Woohoo! Your first macro is born, but it doesn’t do anything… yet.

Create a macro in salesforce step 2

I Have a Macro, Now What?

The next screen is the only tricky part because it leaves you wondering “now what”. But you are a Salesforce super user, so be brave and click the “Edit Instructions” button:

Create a macro in salesforce step 3

Wow, it took you back to the Lead we started from. How exciting! Ok, not really that exciting, but look carefully, everything is outlined with dashes now. Let’s click on “Log a Call”:

Create a macro in salesforce step 4

You will notice some activity on the right-side bar but let’s keep chugging. Click on “Comments”:

Create a macro in salesforce step 5

Over on the right-side bar you can see that an instruction was added to “Log a Call”. There is now a spot for you to enter in the “Comments” you want recorded:

Create a macro in salesforce step 6

Don’t forget to Save! Back on the Leads screen click “Save”:

Save button

Now of course, if you wanted your macro to stop BEFORE saving (say you wanted to add your own notes), you could have stopped there, but we want to be super users so, let’s automate it all!

Macro a Task

So, how do you think I was able to get this next instruction added?

Create a macro in salesforce step 7

Yup, I just clicked on “New Task” on my Leads form and filled it out. BAM! I now have a task (reminder) that will notify me in 3 days that I need to make a follow-up phone call.

Macro an Email

Could we have a macro automatically send out the email as well? I’m glad you asked. The answer is yes. Here are the instructions for that:

Create a macro in salesforce step 8

To pull that off I just clicked “Email” on my Leads form and filled it out. DOUBLE BAM!

You very attentive readers may have noticed I’m doing some magic by inserting the {{{Recipient.FirstName}}} merge field so it fills in with the person’s name when the email is sent. You can do that too! Prepare your template in regular mode and use the “Insert Merge Field” icon:

Create a macro in salesforce step 9

This will show you all the merge fields you have available and you can copy and save it over to your Macro (or if you are really cool you will use the Quick Text feature, but that is a future article).

Don’t be Slow, Save the Macro

That is it; the three steps we wanted to accomplish for this Macro. Be sure and hit “Save” in the upper right-hand corner:

Create a macro in salesforce step 10

Go Macro Go

Now to put that macro to work! Head back to your Lead record (one that you don’t mind sending an email to), click on “Macros”, then click your newly created macro, and click “Run Macro”:

Run macro

Holy Macro, It Works!

Right in front of your eyes you will see the Macro work and, if all goes well, green checkmarks everywhere.

Macro confirmation tab

Your “Activity” tab shows that you logged a call, created a follow up task, and dropped an email, with one click.

Macro activity tab

Congratulations on being a super user! Create a macro in Salesforce for each of your most frequently repeated tasks. It will help save loads of time and become even more efficient as you manage records. You can probably think of more tasks you’d like to automate with macros. We’ll continue to showcase some of the most useful macros in future articles but, until then, keep rocking!

Related Posts

Like what you’re reading? Don’t worry, there’s more to take in!

Use Maps to Better Understand Business Processes

Use Maps to Better Understand Business Processes

Business Processes are the core of what a company does on a regular basis. It is critical they are documented, reviewed, and updated on a regular basis. A documented process often highlights: Why it exists, Starting Points, Inputs, Outputs, End Points, Visual Map, and...

read more