Skip to main content

Posts

Showing posts from January, 2016

How to login to another salesforce Instance from your own Instance

Need to login to other salesforce Instance from your own Instance ?        Here is a simple solution. Decide service provider and Identity provider Service Provider  :  Salesforce Instance (A's developer org). Identity Provider  :  Salesforce Instance (B's developer org). Identity provider Step 1 : Create and register a domain in Identity provider organization,  (Domain Management --> B's Domain) Step 2 : Enable Identity provider. (Security Controls --> Identity Provider)              Create a dummy certificate (self Signed) and set it as use on communication with service provider .              Save identity provider settings.              Download the certificate and saved in a drive.( Need to upload in service provi...

Salesforce Spring 16 Release - CreatedDate and Apex Unit Tests

( Note that this blog post refers to functionality that is intended to be made available in the Spring 16 release of Salesforce, but features may be removed prior to the Spring 16 go-live date, so you may never see this in the wild! ) INTRODUCTION Anyone who has written a reasonable amount of Apex unit tests is likely to have butted up against the shortcoming that the CreatedDate is set when a record is inserted into the Salesforce database. While at first glance this may not seem to be such a huge issue, consider the scenario of a custom Visualforce page, maybe for use in a dashboard, that displays the 10 most recent cases: The controller is about as straightforward as it can be - simply querying back the records from the Salesforce database: ? 1 2 3 4 5 6 7 8 9 10 11 public class RecentCasesController {      public List<Case> getRecentCases()      {     ...