Posts

Siva

Salesforce Data Architech Salesforce Experiance Cloud  Agile methodologies  Project management

Salesforce Apex code for - All fields API names in an object - Object All fields by apex code

 String SobjectApiName = 'OrderItem';//Order'; Map<String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe(); Map<String, Schema.SObjectField> fieldMap = schemaMap.get(SobjectApiName).getDescribe().fields.getMap(); for(String fieldName : fieldMap.keyset())     {         system.debug('fieldName->>'+fieldName);// feild api names     }

Scheduler - apex - salesforce - implements Schedulable

For scheduling every 30minutes code will be like below :  public class SNO_GVC_DRT_ProcesseBatchScheduler implements Schedulable {   //Scheduler   public static final Integer BATCH_SIZE = 10;   public void execute(SchedulableContext sc) {              SNO_GVC_DRT_ProcesseBatch deletegroup = new SNO_GVC_DRT_ProcesseBatch();       Database.executebatch(deletegroup,BATCH_SIZE);        Datetime currentTime = System.now().addMinutes(30);       // prepare schedule string / settings          String scheduleString = String.format(               '{0} {1} {2} {3} {4} {5} {6}',               new List<String>{                   String.valueOf(currentTime.second()),                   String.valueOf(currentTim...

LWC component deployment from cli or vscode terminal

  sf project deploy start -d force-app/main/default/lwc/myComponent Or: sf force:source:deploy -m LightningComponentBundle:myComponent

Lwc Field input validation 0-60 number only Pattern - regular expression in js

  pattern="^([0-5]?[0-9]|60)$" - we need to give in <input  Ex : Lwc Field input validation 0-60 number only Pattern <lightning-input type="text" label="Release Timer In Minutes"  onchange={timerChange} value={timer}         message-when-pattern-mismatch="You Should Enter 0 - 60" pattern="^(0|[1-9]\d*)$"></lightning-input> ex :  Lwc Field input validation 0 < any number <lightning-input type="text" label="Release Timer In Minutes"  onchange={timerChange} value={timer}         message-when-pattern-mismatch="You Should Enter 0 Or Higher Value - Negetive Values Not Allowed" pattern="^(0|[1-9]\d*)$"></lightning-input>

Salesforce Links

1) Lightning Web Components Tutorial (Hindi) | LWC , 2) Salesforce Experience Cloud Project For Beginners| Portfolio Website , 3) Salesforce Experience Cloud Training https://www.youtube.com/@SalesforceNoob/playlists Marketing Cloud AMPscript Training Videos https://www.youtube.com/playlist?list=PLYjAMqKETE1qEF1kEDjekFD6sWqmk9Y4H Experience cloud https://www.youtube.com/@vikasv007/playlists Salesforce Testing - Basics to Advanced https://www.udemy.com/course/salesforce-testing-basics-to-advanced/?couponCode=LEARNNOWPLANS Salesforce Automation Testing : https://www.youtube.com/watch?v=YB6xanqhv6c&list=PLJNiKrW_JKvREJQ5TEo7r2Lo07pPBIbCS What is Salesforce? || Salesforce concepts to know as a Salesforce Tester https://www.youtube.com/watch?v=VHsX9KOirR8&list=PLJNiKrW_JKvR3I1ImUmNFu_BdT5DTv7eb How to setup and use salesforce code analyzer? - Salesforce https://www.youtube.com/watch?v=QKAOh6vvT6w

How to delete debuglogs In salesforce

  SELECT Id, StartTime, LogUserId, LogLength, Location FROM ApexLog refrence :  https://help.salesforce.com/s/articleView?id=sf.code_debug_log_delete.htm&type=5