Difference between SOQL and SOSL
SOQL SOSL SOQL is used if we know in which object the data is present. SOSL is used if we don't know in which object the data is present. In ....
SOQL SOSL SOQL is used if we know in which object the data is present. SOSL is used if we don't know in which object the data is present. In ....
Sample Code: Visualforce page: <apex:page sidebar="false" Controller="Sample" showHeader="true" id="pg"> <apex:pageBlock > <apex:pageBlockTable value="{!memList}" var="m"> <apex:column value="{!m.Name}"/> ....
Count_Distinct() is used to find the number of distinct non-null field values as mentioned in the query criteria. Sample Query: SELECT COUNT_DISTINCT(City__c) TotalCities FROM Employee__c1 Below is the output of ....
Count() is used to find the total number of records in an object. Sample Query: SELECT Count(Id) TotalRecords FROM Employee__c Below is the output of the above query execution.
Cyclic page or component references '/apex/PageName' are not allowed error occurs when we use <apex:page> inside <apex:page>. So, we have to make sure while creating dynamic visualforce page components using ....
Date format is very important when we use date field in SOQL. Sample Query: SELECT Name, Joining_Date__c FROM Order_Line_Items__c WHERE Joining_Date__c = 2014-02-03 Cheers!!!
toLabel() is used to convert the results of particular field into user’s language. All the organizations can use toLabel(). toLabel() helps a lot for the organization where translation workbench is ....
While creating Service Console App, we get an option to select As a subtab of which object. This denotes which parent record should be automatically opened when we open the child ....
Compile all classes option in Salesforce Setup can be used to compile apex classes in Salesforce. 1. Go to Develop --> Apex Classes. 2. Click Compile all classes link.
right() is used to get last n digits from a String using Apex. Syntax: str.right( n ); Example: String str = 'abcd'; System.debug( str.right( 3 ) ); // returns bcd