Category: Salesforce
Visualforce Components in Salesforce
Similar to the way functions work in a programming language, custom Visualforce components allow you to encapsulate common design patterns and then reuse those patterns in one or more Visualforce ....
Simple action status in Salesforce
Sample Code: <apex:page controller="Sample"> <apex:actionstatus id="counterStatus"> <apex:facet name="start"> <div class="waitingSearchDiv" id="el_loading" style="background-color: #fbfbfb; height:100%;opacity:0.65;width:100%;"> <div class="waitingHolder" style="top: 100px; ....
How to avoid CPU time exceeded exception in Salesforce?
1. Avoid nested loop. Make use of Map data type instead of nested loop. 2. Make use of future methods. 3. Try to use Aggregate SOQL. Check the below link ....
How to debug workflow rules in Salesforce?
1. Go to Setup --> Monitor --> Log --> Debug logs. 2. Click "New" button and add your name to get the debug logs. 3. Create or update the record ....
How to show error message from validation rules and triggers in Visualforce page without try and catch block in Salesforce.com?
It is not possible as of now. Cheers!
Salesforce Interview questions with answers Part 22
1. What are all the relationships available in salesforce? Master Detail Lookup Self Hierarchial 2. How to create 1 to 1 relation ship? Create a rollup of count field in ....
DescribeSObjectResult in Salesforce
Sample Code: DescribeSObjectResult sobjectRes = Employee__c.sObjectType.getDescribe(); system.debug('Object Label is ' + sobjectRes.getLabel()); system.debug('Key prefix is ' + sobjectRes.getKeyPrefix()); system.debug('Plural Label is ' + sobjectRes.getLabelPlural()); system.debug('Object Name is ' + sobjectRes.getName()); ....
Schema Namespace in Salesforce
The Schema namespace provides classes and methods for schema metadata information. The following are the classes in the Schema namespace. ChildRelationship Class DataCategory Class DataCategoryGroupSobjectTypePair Class DescribeColorResult Class Describe​DataCategoryGroupResult Class ....
Mass Transfer records in Salesforce
1. Go to Setup --> Administer --> Data Management --> Mass Transfer Records. 2. Select the object. 3. Enter the criteria and click "Find" button to find the records. 4. ....