Summer 18 Gems for Salesforce Developer (Summer 18 Release)

Lightning, Salesforce, Salesforce Lightning, Salesforce Release Exam
Recently Salesforce has released the preview of Summer 18. I have summarized some key points of the release that every salesforce developer is going to love. Below are the points: –

You can create the Pre-release Org from Here and release notes using this link.

Lightning Components

  • Enable Debug Mode for Only the Users Who Need It

  • New Lightning Navigation APIs for Lightning Components: – With the lightning:isUrlAddressable interface, you now control which Lightning components can be opened programmatically. You can also now easily capture URL parameters using the v.pageReference attribute and use the parameter values in your component. With the lightning:navigation component, define a pageReference object for navigating to a custom component that implements lightning:isUrlAddressable and set any attributes the component allows.
  • lightning:insertImageButton: – Adds an insert image button to the toolbar of the lightning:inputRichText rich text editor. The button opens the native file browser so that you can select an image to upload and inserts the image inline in the text area. You can use this component only as a subcomponent within the lightning:inputRichText component.

  • lightning:navigation: – Generates a URL for the given pageReference object, which describes a page’s type, attributes, and state. For more information, see New Lightning Navigation APIs for Lightning Components.
  • lightning:recordForm: – Streamlines creating a form to add, view, or update a record. This component makes it easier to create record forms than building them manually with lightning:recordEditForm and lightning:recordViewForm. Set the mode attribute to view, edit, or readonly to specify the type of form. This form was created by specifying mode=”edit” to add a record.

  • lightningsnapin:minimizedAPI: – Enables customization of the user interface for the minimized snap-in in Snap-ins Chat. lightningsnapin:settingsAPI : – Enables access to the Live Agent button ID and Live Agent deployment ID for use in the custom pre-chat and minimized components for Snap-ins Chat.

Changed Components: – 

  • lightning:datatable: – This component now supports mass inline editing, so you can edit content in multiple table cells and save the changes in one step. The component verifies that you want to update multiple items before it applies your changes.  Columns now support horizontal alignment with the cellAttributes property.The following attributes are new.
    errors—Specifies an object containing information about cell-level, row-level, and table-level errors. Error messages are displayed in the table accordingly.
    oncellchange—The action triggered when a cell’s value changes after an inline edit. Returns the draftValues object.
    oncancel—The action triggered when clicking Cancel in the table footer during an inline edit.
    onsave—The action triggered when clicking Save in the table footer during an inline edit. Returns the draftValues object.
    The following column property is new.
    editable—Specifies whether a column supports inline editing. The default is false.
    The following values for the type column property are new.
    boolean—Displays a checkbox in the column of a Boolean data type.
    date-local—Displays a date field only, not a date and time field.
    The following attribute for the cellAttributes column property is new.
    alignment—Specifies where to align data horizontally in a column. Allowed values are center, right, or left.
  • See complete List Here



  • Lightning Experience Styling and Enhanced Security: – Develop apps to customize your org using Visualforce. Changes in this release help you develop apps with the look of Lightning Experience and improve your pages’ security.



[codesyntax lang=”java” container=”div” doclinks=”1″]

switch on expression {
    when value1 {		// when block 1
        // code block 1
    when value2 {		// when block 2
        // code block 2
    when value3 {		// when block 3
        // code block 3
    when else {		  // when else block, optional
        // code block 4


  • Get the Developer Name for Record Types More Easily: – Schema.DescribeSObjectResult.getRecordTypeInfosByDeveloperName()
  • The SOQL Count() Function Doesn’t Count (As Much) Toward Limits: – The Limit on AggregateQuery has been increased now count() function will be count as 1 row which will not hit the governor limit now.
  • See the complete list Here.


See the complete release notes Here.