Uncategorized

SFDC Reports

SFDC Reports (Diff b/w Tabualr, Summary, Matrix Reports) There are 3 kinds of reports in salesforce.com 1) Tabular Reports 2) Summary Reports 3) Matrix Reports Tabular Reports:- These kind of reports are used when the requirement is just to view…

Read More
Uncategorized

Pagination In Salesforce

Pagination using Visualforce and Apex Class Apex Class : public class accountPaginationCls { public Integer noOfRecordPerPage {get;set;} public Integer selectedPage {get;set;} public Map<Integer, List<Account >> mapAccounts{get;set;} public List<selectoption> pagesOptions {get;set;} public accountPaginationCls(ApexPages.StandardController controller) { mapAccounts =new Map<Integer, List<Account >> ();…

Read More
Uncategorized

Upsert

Upsert: Syntax: UpsertResult[] ur= connection.upsert(String externalIdFieldName, sObject[] sObjects); Upsert is creates new records and updates existing records; uses a custom field to determine the presence of existing records. Use upsert() instead of create() to avoid creating unwanted duplicate records You…

Read More