Salesforce Interview Questions with Answers Part 51
1. How to get the current hour in the local time zone of the context user using apex in Salesforce? hour() returns the hour component of a Datetime in the ....
1. How to get the current hour in the local time zone of the context user using apex in Salesforce? hour() returns the hour component of a Datetime in the ....
1. Go to Case origin and add values. 2. Select different case origin in each Email-to-Case settings to differentiate cases.
If you are unable to see asked questions under the Topic(Discussions) in Communities, make sure you add topic before submitting the question.
Sample Code: ProcessInstanceWorkitem[] workItems = [ SELECT Id FROM ProcessInstanceWorkitem WHERE ProcessInstance.TargetObjectId = '0016A00000OXbfi' ....
Sample Code: Sample.cmp: <aura:component implements="force:appHostable" controller="Sample"> <div class="slds-box slds-theme_default"> <lightning:button variant="brand" label="Click It" onclick="{!c.myAction}"/> </div> </aura:component> SampleController.js: ({ myAction : ....
Sample Code: var abc = "Infallible's Techie's & devel#opment %Inc. "; var s = abc.replace(/[^a-zA-Z0-9s]/g, "").replace(/ss/g, " "); alert(s); Output:
Sample Code:AccountList.cmp: <aura:component implements="force:appHostable" controller="AccountListController"> <aura:attribute type="Account[]" name="acctList"/> <aura:attribute name="gridColumns" type="List" /> <aura:attribute name="gridData" type="Object" /> ....
Error Handling in Lightning Component's JavaScript Controller is important. The try statement in JavaScript helps us to test a block of code for errors. The catch statement in JavaScript helps us ....
When we set showRowLevelActions in lightning:listView, on each and every row, we see the action menu to Edit, Delete and Change Owner.
Sample Code: <aura:component implements="force:appHostable" > <div class="slds-box slds-theme_default"> <lightning:buttonMenu alternativeText="Toggle menu"> <lightning:menuItem label="Menu Item 1" value="menuitem1"/> ....