Posts

Get Flow , Workflow , Process builder name from meta.xml file In Salesforce

 search like in " processType" which will say what it is.

salesforce - sf - sfdx - cli - commands

1. Command for retrieving all Aura Components SF project retrieve start -m AuraDefinitionBundle 2. command for retrieving all lwc components SF project retrieve start -m LightningComponentBundle 3. command for retrieve all apex class sf project retrieve start --metadata 'ApexClass:*'  4. command for login to org sf org login web -a MyAlias       (here "MyAlias" is a dynamic and unique identification of our choice) 5. command for login to org using session id sf org login access-token --instance-url <instance_url> --access-token <access_token> eg: sf org login access-token --instance-url https://login.salesforce.com --access-token 00Dxx0000000000!AQMAQKr0MSLIGgDg 6. command to get apex class ID sf data query --query "SELECT Id, Name FROM ApexClass WHERE Name = 'ApexClassName'" 7. scenario: if a class has code coverage by hundreds of classes and if we would like to find high code coverage class-method-codeCoverageLines i) sf data query --us...

IMP Links AZS Devops - Git - In Telugu

 https://www.youtube.com/@budjetgurulite https://kubecampus.io/kubernetes/courses/ https://www.youtube.com/watch?v=BXT_qur5jYU&list=PL3LnzjBVisiRKEoNQTuIuwPVcs44yamFU

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