Posts

Showing posts from June, 2022

apex list empty check , List null check in salesforce

 apex list empty check , in salesforce if (records!= null && !records.isEmpty()) Here "records" are list of records.

How to get record type id with recordtype name in apex

 How to get record type id with recordtype name in apex  String recordTypeId=Schema.SObjectType.Case.getRecordTypeInfosByName().get('Support').getRecordTypeId();

Missing '' at 'if' error in apex in salesforce

  you cant have code outside your class , your class ends at line  where it show error. if you remove that extra curly brace then error will go-away. Missing '<EOF>' at 'if' error in apex salesforce.