Salesforce Admins: Save time with Custom Buttons
This is a technique we use frequently with our clients. It helps save time by prepolutating fields for your users. For example, have you ever
This is a technique we use frequently with our clients. It helps save time by prepolutating fields for your users. For example, have you ever
Bucketing is a relatively new reporting feature from Salesforce that allows you to simplify data in a report. You can quickly categorize your data in
Phoenix, AZ + everywhere you are
(646) 291-2136
Sputnik Moment © 2023 | All Rights Reserved
This is a technique we use frequently with our clients. It helps save time by prepolutating fields for your users. For example, have you ever wished you could prepopulate the Organization Name or Contact Name fields when creating new donations or volunteer applications?
It requires manipulating URL and a formula but once you have an example, it becomes a lot easier. Today I'm going to share an example where we will set the Membership Start Date field on a new membership record.
Step 1: Create a new button
1. Because our button will create a new membership opportunity, we have to create the button under Opportunities. Setup | App Setup | Opportunities.
2. Click on the New button and make sure you setup the options as indicated below. (Select List Button and Display in existing windows with sidebar)
3. Modify the secret sauce
Did I lose you? Here is how to decipher the code:
To simplify a bit, the above code is a list of "field=value" separated by a '&'. For field value, remember you can use
In order to find the field name, go to the field defintion, inspect the URL which will contain the field name you should use.
Step 2: Add it to the page
4. After clicking Save, you now have to add your newly created button to a page layout.
5. Since we need the button to be on the Contact record in order to allow users to create new membership from a member, we need to Edit the Contact layout.
6. From a contact record, click on the "Edit Layout" shortcut (you may also use quick menu on the right side).
7. Scroll down to the Opportunity related list on the Page Layout editor and click on the wrench. Expand the Buttons section and make sure your new button is in the "Selected Button" box.
8. Click OK.
The result is that when I click on the new button
When clicking on this new button, a new Opportunity screen is presented with the Membership Start Date prepopulated.
No more need to ask users to populate the Membership Start Date, reduce mistakes. There are tons of usage for this trick. Have you used it? How?