How to merge duplicate contacts in Salesforce?
1. Go to Accounts Tab.2. Select the Account. 3. Go the Contacts related list and click "Merge Contacts" button. 4. Select the contacts and click "Next". 5. Click "Merge" button ....
1. Go to Accounts Tab.2. Select the Account. 3. Go the Contacts related list and click "Merge Contacts" button. 4. Select the contacts and click "Next". 5. Click "Merge" button ....
Sample Code: Hobby__c h = new Hobby__c(Name = 'Test'); h.Employee__r = new Employee__c(Employee_Primary_Email__c = 'testing@test.com'); insert h; here Employee__c is the field which is a lookup to Employee__c object and ....
A message for a specific component, such as a warning or error. If an <apex:message> or <apex:messages> component is not included in a page, most warning and error messages are ....
Test.getStandardPricebookId() is used to get or fetch the Standard Price Book Id in the Apex test class. Sample Code: Id pricebookId = Test.getStandardPricebookId(); Sample Apex Test Class: @isTest private class ....
The following fields are indexed by default: 1. Primary keys (Id, Name and Owner fields). 2. Foreign keys (Lookup or Master-Detail relationship fields). 3. Audit dates (such as SystemModStamp). 4. ....
ApexPages.currentPage().getUrl() is used to give the information after the HOST URL. Sample Code: Visualforce page: <apex:page controller="Sample"> <apex:form > <apex:pageBlock > ....
Use the methods in the Schema.FieldSetMember class to get details about fields contained within a field set, such as the field label, type, a dynamic SOQL-ready field path, and so ....
Apex class methods that are exposed through the API with the webService keyword don't enforce object permissions and field-level security by default. We recommend that you make use of the ....
Salesforce.com creates an organization chart based on the contacts selected in the Reports To field of each contact. To create a single chart for an account, make sure every contact ....
Sample Code: public List < SelectOption > exampleProperty { get { //Do something; } } Test Class code: List < SelectOption > ....