Back to the blog

Display Actions Conditionally with Dynamic Actions

May 18 · 5 min read

For admins, Summer ‘20 is the gift that keeps on giving. Hot on the heels of the newly announced Dynamic Forms (Safe Harbor, as you know) they are announcing Dynamic Actions.

If you have ever created a new Profile so you could hide one measly button from a page layout for 2 users raise your hand. Yeah, I see a lot of you out there.

I feel your pain, and apparently Salesforce does too. While Dynamic Actions is in Beta for Summer 20 (at least it’s not a “Non-Developer Preview”), my crystal ball says that this feature will make it to GA in the near future (Safe Harbor, again).

Here is how it will work:


There are no global switches to enable. You simply go to your desired flexipage, and click on the Highlights Panel. If you don’t have one, then you have to add it for this feature to work. Then simply click the “Enable Dynamic Actions” button like shown below. When you do that, a button will display so you can start adding actions to this Highlight Panel

Enable Feature.png
New Button.png

Click on that “Add Action” to add any actions you want. Keep in mind that you don’t have to add any display logic to it. You can add as many buttons as you want (I tried 5 or 6) but remember that only the first few will show up, just like the normal actions. Then, you can add logic to conditionally display any of them, like this

Add Criteria.png

The beauty of this feature is that you can use nearly any field on the screen, or a custom permission, or any other feature that is present in the “Add Filter” button.

In short, this works as if you were conditionally displaying any other component on a flexipage. 

In my case, I chose to only allow a record to be cloned if a certain field contains a value less than or equal to 100. Once you click on “Done”, the screen helpfully identify the conditionally displayed actions with a cool icon.

Identify that Criteria Exists.png

You’re done! Let’s check out how this works now. I can see below that my button is, correctly, not showing for high values.

No Action.png

After an update, it shows!

Note that I had to refresh my screen for the button to disappear. That was very annoying, but I guess this is still a “Beta” for a reason. Overall, however, this is great improvement and I can’t wait to use it in production environments.

Action Shows Up.png


Just like with Dynamic Forms, this is a huge step forward.

And it has one less caveat… it works for Standard Objects (mobile users, you will have to wait as well).

The ability to filter by a random field is great, and hopefully, Salesforce will help us by kicking off a page refresh so we don’t have to. I can’t wait for Summer ‘20 to drop!


theCodery understands the challenges in modern tech stacks. We have developed a personalized approach for each Salesforce Cloud implementation while leveraging our deep been-there-done-that and best-practice expertise to ensure you get the most value from your Salesforce deployment.  We take an agile approach with all development, optimization, and integration projects.  Whether you are trying to broaden your engineering and development capabilities, reduce technical debt, integrate tools you are unfamiliar with, or create new applications, theCodery has a proven track record of solving problems and streamlining complexity.

If you have any questions for theCodery about our team, our process, or the clients, please reach out to us at:

theCodery: Accelerate your time-to-value on Salesforce with a trusted partner that delivers scalable architectures that are tailored to delight your customers.

Other Articles by this Author

theCodery’s Dreamforce Recap – 5 Sessions We Found Most Inspiring theCodery’s Dreamforce Recap – 5 Sessions We Found Most Inspiring
Dreamforce 2021 was held in San Fransisco on September 21st-24th. It was a flurry of presentations, meetings, and activities all centered around the Salesforce ecosystem. Th...
5 min read
We Make Migrating from Klaviyo to Marketing Cloud Easy We Make Migrating from Klaviyo to Marketing Cloud Easy
It may look like a mountainous task from the outside, but the integrations experts at theCodery made it look easy. Learn how we tackled the mountainous task of migrating an ...
6 min read
Is Your Salesforce Driving Operations Or Is It In Need Of An Operation? Is Your Salesforce Driving Operations Or Is It In Need Of An Operation?
A great Salesforce system is constantly evolving to increase performance and drive organizational change. A great Salesforce system is not exclusively consumed with just fix...
5 min read
Salesforce Summer 21’ Release Notes Salesforce Summer 21’ Release Notes
Summer 21’ is just around the corner with releases starting across Salesforce instances as soon as May 15th and deploying to all Salesforce orgs by June 12th...The team at t...
5 min read
theCodery Supports Autism Awareness Month theCodery Supports Autism Awareness Month
Here at theCodery, we are part of a program called Pledge 1%. “Pledge 1% is a global movement that encourages and empowers companies of all sizes and stages to donate 1% of ...
3 min read
What Sets theCodery Apart From Other Salesforce Partners? What Sets theCodery Apart From Other Salesforce Partners?
What sets us apart from every partner that I’ve worked for (or cleaned up after) wasn’t pointed out to me during the interview process, employee orientation, or a pep-rally....
5 min read

Get a {FREE} Consultation Now!