by ChadSmith | Feb 24, 2018 | Lightning, Salesforce Tips
In Salesforce classic I’d often use JavaScript buttons to quickly schedule 7 or 14 day follow up tasks to make the job of scheduling reminders easier. However, with the advent of the Lightning Experience, we can no longer use JavaScript, so… Here’s how we can use actions to replace our handy JavaScript buttons.
First, navigate to the Buttons, Links, and Actions for the object you want to create the buttons for. For our demo here, I am going to use the Contact object.

Then click New Action and fill it out like so:

Next, we set the layout for the action, these are the fields that are going to show to the end user. Since we want this to be very quick and easy I am going to take most of the fields off, you may want to experiment with what will work best for your users. Since some required fields like Status will not be shown we’re going to get a warning message, however, we’ll set those automatically in the next step.

Next, enter the predefined values for Subject, Due Date, Status, Priority and Assigned To.

Finally, add our new actions to the Salesforce Mobile and Lightning Experience Action area of your page layout.

Finally, your end users will have quick ways to schedule those follow up calls from Lightning.

by ChadSmith | Feb 23, 2018 | Salesforce Tips
There are lots of things to love about the Salesforce Lightning Experience, one that may be overlooked but can speed up your work are the keyboard shortcuts available. Here are the shortcuts available, I’ve highlighted my favorites that I use all day everyday.

by ChadSmith | Nov 24, 2017 | Apex, Visualforce
I can never remember what the different Visualforce page message options look like between the severity and strength so here are the options along with the code.

<apex:page title="Visualforce pageMessage Samples">
<apex:form >
<apex:pageMessage title="Message Title" summary="Strength:0, Severity:Confirm" strength="0" severity="confirm" />
<apex:pageMessage title="Message Title" summary="Strength:1, Severity:Confirm" strength="1" severity="confirm" />
<apex:pageMessage title="Message Title" summary="Strength:2, Severity:Confirm" strength="2" severity="confirm" />
<apex:pageMessage title="Message Title" summary="Strength:3, Severity:Confirm" strength="3" severity="confirm" />
<apex:pageMessage title="Message Title" summary="Strength:3, Severity:Info" strength="3" severity="info" />
<apex:pageMessage title="Message Title" summary="Strength:3, Severity:Warning" strength="3" severity="warning" />
<apex:pageMessage title="Message Title" summary="Strength:3, Severity:Error" strength="3" severity="error" />
</apex:form>
</apex:page>