Posts

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.

How to Enable Documents tab in salesforce

 In lightning we are not able to see Documents tab. if you go to classic view then we are able to see  Documents tab. How to Find a Document tab In Lightning view in salesforce.