DateTime new instance using Apex in Salesforce
Sample Code: /*Constructs a DateTime from the specified date and time in the local time zone.*/ Date myDate = Date.newInstance( 2020, 10, 30 ); Time myTime = Time.newInstance( 3, 3, ....
Sample Code: /*Constructs a DateTime from the specified date and time in the local time zone.*/ Date myDate = Date.newInstance( 2020, 10, 30 ); Time myTime = Time.newInstance( 3, 3, ....
To direct your users to a specific location after authenticating, specify a URL with the startURL request parameter.https://login.salesforce.com?app=06m5w000001ZzcbAThis opens an App based on the Id used in the app based ....
Sample Code:Component: <aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,lightning:actionOverride,lightning:isUrlAddressable" access="global" > <aura:attribute name="recordId" type="String"/> <lightning:notificationsLibrary aura:id="notifLib"/> <div class="slds-box slds-theme--default"> <lightning:recordEditForm objectApiName="Lead" onload="{!c.handleCreateLoad}"> <lightning:messages /> <lightning:inputField fieldName="FirstName" aura:id="FirstName"/> <lightning:inputField fieldName="LastName" aura:id="LastName"/> <lightning:inputField fieldName="Email" ....
tooltip can be used to show Name instead of Id in URL type.Sample Code:Component: <aura:component implements="force:appHostable" controller="AccountListController"> <aura:attribute type="Account[]" name="acctList"/> <aura:attribute name="mycolumns" type="List"/> <aura:handler name="init" value="{!this}" ....
Lightning web components dispatch standard DOM events. Components can also create and dispatch custom events. Use events to communicate up the component containment hierarchy. For example, a child component, c-todo-item, ....
For Omni-Channel Case Routing using Queues in Salesforce, use the below steps. 1. Enable Omni-Channel.2. Go to Service Channels in Setup. Create Service Channel for standard Case Object.3. Go to Routing ....
Live Message Session reuse time (seconds)The time between when a LiveMessage session is ended and a new message is received that an LiveMessage session should be reused. The Auto-Response Message, ....
Sample code: HTML: <template> <div class="slds-box slds-theme--default"> <lightning-button-menu alternative-text="Show menu" variant="border-filled" onselect={handleOnselect} label="Actions"> <lightning-menu-item value="Account" label="Create Account"></lightning-menu-item> <lightning-menu-item value="Contact" label="Create Contact"></lightning-menu-item> <lightning-menu-item value="Lead" label="Create Lead"></lightning-menu-item> <lightning-menu-item value="Opportunity" label="Create Opportunity"></lightning-menu-item> </lightning-button-menu> ....
Sample Code:Map < String, Schema.SObjectType > gd = Schema.getGlobalDescribe();for ( String objectName : gd.keySet() ) { Schema.SObjectType result = gd.get( objectName ); if ( result.getDescribe().isCustomSetting() ) { String ....
Organization-Wide Email Addresses Email Template Email Alert Schedule-Triggered Flow Output: