Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A talk for London's Calling 2018 entitled "Something Better Change". The title is a nod to The Stranglers a British punk band formed in the 70's, A talk for London's Calling 2018 entitled "Something Better Change". The title is a nod to The Stranglers a British punk band formed in the 70's, around the same time as The Clash, and still going today.     

Also given in part at Melbourne Salesforce User Group

Also given at World Tour Sydney 2018. 

Overview

Actions are one of the most powerful tools in your Salesforce declarative app-building toolbox. 

...

  • Toast! You can create a Custom Success Message on Create and Update Quick Actions that shows a link briefly to the new record created or the record updated. Note: It won't show the ID of the newly created record like a standard create does. You can't do conditional filters on Record Type
  • If your Create Record Action is not showing up, ensure you have it set to create a specific Record Type IF you have Record Types on that Object!
  • You can't do conditional filters on Record Type anymore it seems. You couldn't, then they fixed it, but it seems like it's not possible anymore. Create a formula field named RecType with a formual of RecordType.Name.
  • Blank Spaces on the left hand side of the layout do nothing. The fields just align left. So try to design your layouts to the left. 
  • You can't (yet - don't know if it's coming), override a standard Button (eg New Case) with a Quick Action - you can with a Flow though, as long as it's embeded in a Lightning Page - see notes above. 
  • The Mass Quick Actions on Cases can't be a Flow, they can only be an Action. 
  • Can't set predefined values for Rich Text Areas, Multi Select Picklists (https://help.salesforce.com/HTViewHelpDoc?id=predefined_field_values_notes.htm&language=en_US
  • Quick Actions can't be Profile specific - eg if you have Create Case as a Quick Action, it will be shown to all users that can use that Page Layout, regardless of if they have Case permissions. 
    • This is quite evident when setting up a Partner or Customer Community. 
    • The trick is then that you are going to need to set up, and maintain, different page layouts for different profiles. 
  • You can't Clone Actions which is highly annoying. 

Tips

  • Know exactly where the Actions Buttons will appear - see Kristi Guzman's webinar to understand what goes where. 
  • Always override the standard Salesforce Mobile and Lightning Experience Actions bar to ensure you have every Action in the right location
    • Chatter Actions
    • New Record Actions
    • Update Actions
    • Edit
    • Change Record Type
    • Change Owner
    • Clone
    • Other Buttons
    • Delete
  • Set the No. of Buttons to be displayed on the Lightning Record Page to make it look reasonable and so the Delete button is hidden below the dropdown. 
  • You can create a Feed Item (say on the Parent record when creating a Child record, just by setting the Feed Item checkbox on the Action. 

Some Example Actions

See Actions Examples for more details.

Actions with Related Record Component

The Related Record Component is a very interesting component. Something that Microsoft Dynamics CRM has had for a few years now and it's finally in Salesforce! And with Winter '18 they are fimally very useful! 

  • Use it with care - you could have a number of them on the page. Now with conditional components this is a double-edged sword. You can hide and show them, but too many components may slow things down. 
  • They are difficult to set up because they require at least an Edit Record Quick Action on the related record. 
  • They are finally useful with formulas displayable on the related record component. 
  • There seems to be a bug with the layout where the last field on the RRC will not align with the other fields. See screen shots on the Actions Examples. 

Different Page Layouts per App

You know how you can't have a different page layout for a different app, but you can have a different Lightning Record Page for each different App? Well I created a Lightning Record Page that does NOT include the Details component! What? I hear you say! I created an Update Action for each Record Type with all fields read only and conditionally displayed the Related Record component on the page, depending on the Record Type of the record. Yes, we still know which record we are on even though we are not displaying the Details Component. Hopefully when we can (hopefully sometime in the future) when we have some sort of conditional page layouts, we won't need to do this again. 

And because the Compact Layout had enough information in it I did not even need to add the preamble fields showing what the record was about - straight to the nitty gritty! 

...

  • _US
  • Quick Actions can't be Profile specific - eg if you have Create Case as a Quick Action, it will be shown to all users that can use that Page Layout, regardless of if they have Case permissions. 
    • This is quite evident when setting up a Partner or Customer Community. 
    • The trick is then that you are going to need to set up, and maintain, different page layouts for different profiles. 
  • You can't Clone Actions which is highly annoying. 

Tips

  • Know exactly where the Actions Buttons will appear - see Kristi Guzman's webinar to understand what goes where. 
  • Always override the standard Salesforce Mobile and Lightning Experience Actions bar to ensure you have every Action in the right location
    • Chatter Actions
    • New Record Actions
    • Update Actions
    • Edit
    • Change Record Type
    • Change Owner
    • Clone
    • Other Buttons
    • Delete
  • Set the No. of Buttons to be displayed on the Lightning Record Page to make it look reasonable and so the Delete button is hidden below the dropdown. 
  • You can create a Feed Item (say on the Parent record when creating a Child record, just by setting the Feed Item checkbox on the Action. 
  • See Accounts for an example Layout. 

Some Example Actions

See Actions Examples for more details.

Actions with Related Record Component

The Related Record Component is a very interesting component. Something that Microsoft Dynamics CRM has had for a few years now and it's finally in Salesforce! And with Winter '18 they are fimally very useful! 

  • Use it with care - you could have a number of them on the page. Now with conditional components this is a double-edged sword. You can hide and show them, but too many components may slow things down. 
  • They are difficult to set up because they require at least an Edit Record Quick Action on the related record. 
  • They are finally useful with formulas displayable on the related record component. 
  • There seems to be a bug with the layout where the last field on the RRC will not align with the other fields. See screen shots on the Actions Examples. 

Different Page Layouts per App

You know how you can't have a different page layout for a different app, but you can have a different Lightning Record Page for each different App? Well I created a Lightning Record Page that does NOT include the Details component! What? I hear you say! I created an Update Action for each Record Type with all fields read only and conditionally displayed the Related Record component on the page, depending on the Record Type of the record. Yes, we still know which record we are on even though we are not displaying the Details Component. Hopefully when we can (hopefully sometime in the future) when we have some sort of conditional page layouts, we won't need to do this again. 

And because the Compact Layout had enough information in it I did not even need to add the preamble fields showing what the record was about - straight to the nitty gritty! 

NOTE: Do what I say, not what I do. Doing some of these things may result in you having to re-factor a lot of pages and Actions when new features come out in forthcoming releases. 

Admin Fields

Don't populate ALL your page layouts with System Fields and fields that you have created for Admin or reporting purposes - just create an Update Action named DisplAdmin and add the fields that are necessary to that. Then make that Related Record Component visible to Profile = System Administrator only using the great new feature released in Spring '18. Also, quite often you don't need to display these fields on the page layout at all - see Salesforce Inspector chrome extension

Troubleshooting

  • Why isn't the standard Post Action and the Chatter Feed not showing on my Lightning Record Page
    • Two things must be in place:
      • The Post Action must be on the Salesforce Mobile and Lightning Experience Actions bar on the Page Layout and
      • The Object must be enabled for Feed Tracking. 
  • Why can't I create an Update Action on Global Actions
    • Sorry, it's just not possible. Global Actions are not aware of the context so they can't update a record that they know nothing about. So use Object Specific Quick Actions instead. 
  • Why isn't my Send Email Action showing?
    • It's an org before Spring '17 and you need to re-create the Send Email Actions in Lightning
    • It's a Sandbox and you don't have Email Deliverability set. 
    • There is no Email field on the Object. 
    • The Send an Email Action has not been added to the Salesforce Mobile and Lightning Experience Actions bar.
  • Why isn't my Send Email Action working. 
    • You don't have Send Email permissions. 
    • There is no email address entered on the record
  • Why isn't my Create Record Action appearing on the Lightning Page
    • Make sure it is creating a record of a specific Record Type

Interesting Articles

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "actions"

...