Creating Custom Tabs for Lightning Web Components

Create a Lightning web component and add it as a custom tab in the App Launcher and navigation menu. Create a new Lightning web component: Name:¬†myComponent Add a lightning-card to myComponent: Title:¬†Hello Add a lightning-button to the Hello lightning-card (Note: make sure the button lives in the ‚Äúactions‚ÄĚ slot): Label:¬†New Add a footer paragraph to… Read More

Record Page Component Visibility Rules Based on Device

Cloud Kicks has a requirement to make the recommendation component visible on a Sales Rep’s desktop. Build out a custom Lightning account page. Create a new Lightning page: Page type:¬†Record Page Label:¬†Account Page Object:¬†Account Template:¬†Clone Salesforce Default Page > Account Grouped View Default Add the¬†Recommendations¬†component to the page you created Add a visibility filter on… Read More

Editable Lightning Datatable Component

I wanted a nicer way to display related contacts on an account page layout.¬† This editable lightning datatable custom component does the trick!¬† I love it and it’s working out really well for us. ContactDataTable Component <aura:component implements=”force:appHostable,flexipage:availableForAllPageTypes,force:hasRecordId” access=”global” controller=”ContactDataTableController”> <aura:attribute name=”data” type=”Object”/> <aura:attribute name=”columns” type=”List”/> <aura:attribute name=”recordId” type=”String”/> <!– This attribute will hold the… Read More

Omni-Channel Lightning Component

Salesforce Omni-Channel is great, but the one downside in our organization is that you have to manually set your status to available in order to receive chat or work requests. I am in the midst of creating a Background Utility Item which will auto log you into omni-channel. Omni-Channel Lightning Component <aura:component implements=”lightning:backgroundUtilityItem” access=”global” >… Read More

Work with the Lightning Map Component and Apex Inherited Sharing

This is the hands on challenge from the Platform Developer 1 Winter 19 Certification Maintenance. UtilityClass public inherited sharing class UtilityClass { public static List<sObject> queryObjects(String theObject, List<String> theFields, List<String> theFilters, String sortField, String sortOrder) { String theQuery = ‘SELECT ‘ + string.join(theFields, ‘,’); theQuery += ‘ FROM ‘ + theObject; boolean firstFilter = true;… Read More