Salesforce automates tasks, streamlines business processes, and allows for one-to-one journey building for specific targets…which makes it the perfect platform for some April Fools hijinks.
I used to work in a prison, so in the past my pranks had to be very vanilla. I relied on lots of old standbys like leaving an urgent message from Mr. Lyon and the number for the zoo, saving up 6 months of hole punch clippings to ‘celebrate’ a coworkers birthday by decorating their office, glitter bomb cards, replacing the contents of someones desk with paper shreddings, etc.
With Salesforce though, the opportunities for a solid April Fools joke are endless, here are 3 fun ones that work great for Lightning Experience.
**Disclaimer** I am not in any way recommending you execute any of these pranks. Implementing any of these may not be received positively and can have negative consequences. I am only providing examples of how you could prank users in your org. Be smart out there kids, use your heads.
1. You Have Successfully Deleted…
My favorite feature of the Winter ’18 release was Dynamic Lightning Pages. Sure, it would be helpful to use with clients and to limit the number of lightning pages that needed to be created on projects, but honestly my first thought was, ‘Hah, that would make a great prank.’
The Prank: A targeted list of users, when they view an account record receive the following message, when they click the image, an April Fools gif is displayed. The page is restored when they click the restore button in the quick action menu.
Here is the setup:
- Add a formula checkbox field called ‘Targets’ to your object. Specify the users want to target by using a formula like: OR($User.Id=’TargetedUserID’, $User.Id=’TargetedUserID2’…)
- Add another field, API name AprilFools, with a label like: ‘Happy April Fools! Save to Restore page.’
- Edit the objects lightning page – add a new rich text component to top of the page, enter a message like the one in the image above.
- You can link to any image you want, I used this one.
- Set this component to only be visible with these conditions. I’ve also included the conditions for the primary page tabs. These should be set so that only your ‘targets’ will have the main tabs hidden and your targets will get the main tabs back when they click your restore button.
- The last step is add a lightning quick action, pre-populating your AprilFools restore field to true, and adding the action to the page layout. I named my button Restore.
2. Well Deserved Praise
Admins can get beat up all year log, between users breaking things, sending absurd report requests, and complaining because ‘the system’ does not do what they want, it can get exhausting. The worst part is, admins rarely get the praise they truly deserve…we are going to fix that.
The Prank: Create a Validation Rule, targeted a select group of users, that requires them to acknowledge your greatness before saving a record.
Here is the setup:
- Add a formula checkbox field called ‘Targets’ to your object. Specify the users want to target by using a formula like: OR($User.Id=’TargetedUserID’, $User.Id=’TargetedUserID2’…)
- Create a text field on your target object, GOAT, be sure to give it 255 characters.
- Add it your object page layouts, but set the field visibility so it is hidden to everyone.
- Create a permission set that grants read/write access to the field and assign it to your targeted users.
- Create a Validation rule like below, targeting specific users, and you’ll finally get the praise you deserve (email alert optional…)
3. A Special Gif(t)
This one is pretty harmless, it should get a good chuckle, I think.
The Prank: Animated gif’s appear based on a record status in a custom formula field.
Here is the setup:
- Add a formula checkbox field called ‘Targets’ to your object. Specify the users want to target by using a formula like: OR($User.Id=’TargetedUserID’, $User.Id=’TargetedUserID2’…)
- Identify the field you want to use and your related gifs.
- Add another formula field, output text, with a formula like below. When one of your ‘targets’ views the record, the appropriate gif will be displayed.
IF(AND(Targets__c=True,IsClosed=false),IMAGE(‘https://assets.infusionsoft.com/image/upload/v1/learn/images/Zz1hYzI1YjNhODEzYTJhZWQwNDVlMjE4NzlhNGIzM2QyNQ%3D%3D’,’ABC’),
IF(AND(IsClosed=True,IsWon=False,Targets__c=True), Image(‘https://media.giphy.com/media/Va0XTfrUhDevK/giphy.gif’,’Bankruptcy’),
IF(And(Targets__c=True,IsWon=True),Image(‘https://im-01.gifer.com/2oIl.gif’,’Money’)
null)))