How to get All Date of Birth Fields in Salesforce?
Sample Code: Set < String > listsObjs = new Set < String > { 'Account', 'Lead' }; Map < String, Schema.SObjectType > globalDescription = Schema.getGlobalDescribe(); for ( String obj : ....
Sample Code: Set < String > listsObjs = new Set < String > { 'Account', 'Lead' }; Map < String, Schema.SObjectType > globalDescription = Schema.getGlobalDescribe(); for ( String obj : ....
The call to Database.executeBatch should be included within the Test.startTest and Test.stopTest block. The job executes after the call to Test.stopTest. Any asynchronous code included within Test.startTest and Test.stopTest is ....
Sample Code:Component:<aura:component implements="force:appHostable" controller="AccountListController"> <aura:attribute type="object" name="acctList"/> <aura:attribute name="mycolumns" type="List"/> <aura:handler name="init" value="{!this}" action="{!c.onInit}"/> <lightning:datatable aura:id="acctTable" ....
Make sure the users have "View and Edit Converted Leads" permission. Check this for more information on this permission. https://www.infallibletechie.com/2018/10/profile-permission-to-view-and-edit.html Sample Code: Trigger: trigger LeadTrigger on Lead ( after update ) { Map < Id, Id > mapOpptyIdLeadId = new Map < Id, Id >(); for ( Lead objLead : trigger.new ) { /* Once the Lead is converted, getting the Converted Opportunity Id */ ....
type should be set as 'date' to display DateTime datatype in lightning datatable. Sample Code: Apex Class: public class AccountListController { @AuraEnabled public static List < Account > fetchAccts() { return ....
Sample Salesforce Custom Permission: Sample Code: Boolean accessBool = FeatureManagement.checkPermission( 'Create_Account' ); System.debug( 'accessBool is ' + accessBool ); ( Or ) Boolean accessBool; Set < Id > permissionSetIds = ....
DateTime field values are stored as Coordinated Universal Time (UTC). When a dateTime value is returned in Salesforce, it’s adjusted for the time zone specified in your org preferences. SOQL ....
Sample Code: FeedItem post = new FeedItem(); post.Body = 'Enter post text here'; post.ParentId = '005U0000000gviFIAQ';//Id of the user record insert post; Output:
Sample Code: ContentDocumentLink objCDL = new ContentDocumentLink(); objCDL.ContentDocumentId = '0695A000004dRpRQAU';//Id of the file objCDL.LinkedEntityId = '0035A00003MuvnuQAB';//Id of the record for sharing objCDL.ShareType = 'V'; insert objCDL;
The System.Callable interface enables you to use a common interface to build loosely coupled integrations between Apex classes or triggers, even for code in separate packages. Agreeing upon a common ....