You may think that the real Salesforce superheroes are the developers. And you’re right. But I have some exciting news for you! If you’ve ever built a formula field or workflow rule in Salesforce, you’re a developer! As a superhero, you’re going to need to start developing your super powers, and this week, I’d like to share a trick that will give you the ability to travel through time and read minds all at once!
Looking at a complicated formula you (or maybe someone else) wrote oh so many moons ago can take ages to unwind. It would be easier to just read the other developer’s mind or have a conversation with the past you. Adding comments to your formulas and training your team to do the same turns you into Professor Xavier and The Doctor rolled into one super awesome Salesforce superhero. Add a comment anywhere in your formula by writing /* before a note in plain English (or your language of choice) explaining your purpose, then end it with */. Salesforce will ignore the commented parts, and now when you ask yourself “why did I write that IF statement like that?” you’ll get an answer from somewhere in the time vortex. You can’t change the past, but you’ll certainly be giving your team a brighter future!
-Jared and the Salesforce Guys