Spice Up Your Salesforce Flow with Custom Icons

Are you a developer looking to make your Salesforce Flows more visually appealing? Here’s a simple way to add a custom icon to your invocable methods!

Instead of using the default icon, you can pick any icon from the Salesforce Lightning Design System (SLDS) library. Finding them is easy, just google “SLDS icons” and find the one you like to use in your Salesforce Flow.

How to Do It:

Setting up custom icons in Salesforce Flows is easy. All you need to do is the flowing.
Set the IconName Attribute: Use the iconName attribute in the InvocableMethod annotation to specify your icon.

  • For Standard Icons: Use the format slds:category:name.
    @InvocableMethod(label='Example' iconName='slds:standard:collection_variable')
  • For Custom Icons: Upload your custom SVG as a static resource and reference it.
    @InvocableMethod(label='Example' iconName='resource:custom:custom21')
Result

After adding the iconName in the InvocableMethod annotation in the Salesforce Flow this is the result you will get.

Apex Action Icons

Customizing the appearance of your invocable methods not only enhances the visual appeal but also makes the Flow more intuitive and engaging for admins. By using unique icons, you can quickly convey the purpose or category of an action, helping users navigate and understand the Flow more easily.

Additionally, having a personalized touch can make your Salesforce environment feel more tailored to your organization’s needs. This simple change can make your Flows look much better and help your admin focus on building them. Give it a try and see the difference it makes!

Learn Moar!

Add a Custom Icon to an Apex-Defined Action
Secret Strategies To Conquer Governor Limits And Revolutionize Your Development Game!

Share this article...

Salesforce Mentor, with 10 years Salesforce experience, Hardcore Admin & Guru Developer, Geek, Animal lover, and dog & cat rescuer activist. Lifetime student, Stand-Up comedian wannabe, Photographer, Gamer, Anime lover, and coffee addict. Spreading Salesforce love and teaching beyond my capacity. Aiming to become Tech Architect!

One Ping

  1. Pingback: SalesforceMonday - Mastering Salesforce Apex Testing

Leave a Reply

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