Rules for naming variables
Variable name should be Unique within scope Variable name should be <= 255 characters (based on the programming language) Variable name should not contain spaces or any special characters (. ....
Variable name should be Unique within scope Variable name should be <= 255 characters (based on the programming language) Variable name should not contain spaces or any special characters (. ....
SOQL: SELECT Id, Name, DeveloperName, SobjectType FROM RecordType Object name is RecordType. Apex: List<RecordType> RTList = [SELECT Id, Name, DeveloperName, SobjectType FROM RecordType];
Sample Code: Visualforce page:<apex:page standardcontroller="account" extensions="Sample"> {!Aid} </apex:page> Apex Controller: public class Sample { public Id Aid {get;set;} public Sample(ApexPages.StandardController controller) { Account acc = new ....
Note: Use apex:outputField to consider using User's locale(currency and date format). Sample Code: Visualforce page: <apex:page controller="Sample"> <apex:outputLabel value="The value is : "/> <apex:outputText value="{0, number, currency}"> <apex:param value="{!inte}"/> </apex:outputText> ....
By default, in Workbench "Allows SOQL Parent Relationship Queries" will be unchecked. So, check the "Allows SOQL Parent Relationship Queries" check box to fetch reference records in Workbench. 1. Go ....
1. To login into Workbench, kindly follow the below link https://infallibletechie.com/2013/10/workbench-in-salesforce.html 2. Select SOQL in Jump To and select the object and click "Select" button. 3. Enter the query and ....
Workbench is a powerful, web-based suite of tools designed for administrators and developers to interact with Salesforce.com organizations via the Force.com APIs. 1. Go to "https://workbench.developerforce.com/login.php" and click "Login With ....
SOQL: SELECT Name, Owner.Name, Owner.UserRole.Name, Owner.Profile.Name FROM Account Output: Cheers!!!
SOQL: SELECT UserRole.Name, Profile.Name FROM User Output:
Exception: Field is a Picklist Field. Picklist fields are only supported in certain functions Resolution: Use TEXT() to avoid this error. Syntax: TEXT(PicklistField) Example: TEXT(State__c) where State__c is a picklist field.