Create VoiceCall record using Salesforce Apex
1. Use the following SOQL to get the CallCenterId. SELECT Id, Name FROM CallCenter 2. Use the following Apex code to create the VoiceCall record. Sample Apex Code: insert new ....
1. Use the following SOQL to get the CallCenterId. SELECT Id, Name FROM CallCenter 2. Use the following Apex code to create the VoiceCall record. Sample Apex Code: insert new ....
To have fixed Header in Salesforce Lightning Web Component Lightning Datatable, set a height to the lightning datatable using a div tag. Sample Code: Apex Class: public class AccountController { ....
setClientCertificateName() can be used to assign certificate when making Salesforce Apex Callouts. Sample Certificate: Sample Code: HttpRequest req = new HttpRequest(); req.setClientCertificateName( 'Test_Certificate' ); req.setMethod ( 'GET' ); System.debug( 'Request ....
hour() method returns hour in the running user context. hourGMT() returns the GMT hour value. Sample Code: DateTime objDateTime = DateTime.now(); System.debug( 'Current User Time Zone(EST) Hour ' + objDateTime.hour() ....
In Salesforce, we can use Quick Action using Lightning Aura Component to allow users to select the files and download the selected Files. Apex Class: public with sharing class MassDownloadFilesController ....
We can make use of Salesforce Lightning Aura Component to display Lightning Web Component for Quick Action on the Work Order Object/Entity. Embed the Lightning Web Component on the Lightning ....
To find Salesforce Permission Label when we have API Name, we can make use of Schema.DescribeSObjectResult and Schema.DescribeFieldResult on PermissionSet object/entity. Using the following code, we are finding the Label ....
isCustom() method from Schema.DescribeFieldResult can be used to find whether the field custom or standard in Salesforce using Apex. Sample Apex Code: Schema.DescribeSObjectResult objectDescribeResult = Account.sObjectType.getDescribe(); Map < String , ....
notifyRecordUpdateAvailable in Salesforce Lightning Web Component is used to notify the Lightning Data Service that the record data has modified/changed on the server so that the Lightning Data Service can ....
EmailHeader triggerUserEmail should be used to send the Email Notifications for the Case Comment records created. Reference Article: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_casecomment.htm Sample Apex Code: CaseComment objCaseComment = new CaseComment( ParentId = '5003t00001icShAAAU', ....