Entitlement Templates in Salesforce
Entitlement templates let you predefine terms of support that users can add to products. If Entitlement template is assigned to ProductA and if Asset is created with the ProductA, Entitlement ....
Entitlement templates let you predefine terms of support that users can add to products. If Entitlement template is assigned to ProductA and if Asset is created with the ProductA, Entitlement ....
Sample Code:LWC HTML:<template> <div class="slds-box slds-theme_default"> <lightning-record-form record-id={recId} object-api-name={objectName} layout-type="Full" mode="view" columns="2" density="comfy"></lightning-record-form> </div></template>LWC JavaScript:import { LightningElement, wire, track } from 'lwc';import { CurrentPageReference } from 'lightning/navigation';export default class RecordPageLWC ....
Use "/event/LightningUriEventStream" channel for Salesforce Event Monitoring notifications listening from Workbench. 1. Go to Event Manager.. 2. Enable the Event. In my case, I have enabled Lightning URI Event. Get ....
Sample Code:Component:<aura:component implements="force:appHostable,forceCommunity:availableForAllPageTypes"> <aura:attribute name="options" type="List" default="[ { 'value': 'option1', 'label': 'Sales' }, { 'value': 'option2', 'label': 'Force' } ]"/> <aura:attribute name="value" type="String" default="option1"/> <div class="slds-box slds-theme--default"> ....
Create a Standard Page with the name "Sample": Sample code: Component1 cmp: <aura:component implements="forceCommunity:availableForAllPageTypes" access="global" > <aura:attribute name="Txt1" type="String" default=""/> <aura:attribute name="Txt2" type="String" default=""/> <div class="slds-box slds-theme_default"> This is component ....
Arrow functions also called “fat arrow” functions are a more concise syntax for writing function expressions. Arrow functions were introduced with ES6 as a new syntax for writing JavaScript functions.fat ....
Sample Code: Apex Class: public class EmailMessageHandler { public static void insertEM( String recordId ) { EmailMessage emailMessage = new EmailMessage(); emailMessage.status = '3'; // email was sent emailMessage.fromName = ....
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}" action="{!c.fetchAccounts}"/> <lightning:datatable data="{! v.acctList }" columns="{! v.mycolumns ....
RegEx can be used to find text between tags in Salesforce using Apex. Sample Code: String str = '<test>abc</test><test>xyz</test>'; Pattern TAG_REGEX = Pattern.compile( '<test>[a-z]*</test>' ); Matcher matcher = TAG_REGEX.matcher( str ....
@InvocableVariable in Apex is used when Flow invokes or calls the Apex Class and method. Apex Class: global class FlowController { @InvocableMethod( label='Show Outputs' description='Getting multiple values' ) global static ....