* We can only use runAs {System.runas()} in a test method. It is not possible to use it in Apex Classes.
* Developer Console by default works in User Mode.
* For before mode in case of update for an event (if the update is for the same object on which we are writing the trigger) no need to use 'UPDATE' DML Statement.
* Data Loader time zone and sandbox or production time zone should be same while working with date fields.
* If we convert the lead record then that lead record won't exists in lead object but when running the reports it will display the converted leads.
* Developer Console by default works in User Mode.
* For before mode in case of update for an event (if the update is for the same object on which we are writing the trigger) no need to use 'UPDATE' DML Statement.
* Data Loader time zone and sandbox or production time zone should be same while working with date fields.
* If we convert the lead record then that lead record won't exists in lead object but when running the reports it will display the converted leads.
Please see the below Comments
Workflow Rules for summer 2012:
ReplyDelete----------------------------------
Cross object workflows, finally! This is a long overdue feature that everyone has been waiting for and should reduce the need for APEX Triggers for some very basic scenarios. I wonder what types of limitations will be placed on this.
---------------------
Refer:
-------------
http://www.shamrockcrm.com/chatter/salesforce-spring-2012-release-features/
Works only for master-detail relationships objects.
DeleteWithin a 15 character Id the breakdown is:
ReplyDeleteFirst 3 characters - The first 3 characters are the key prefix that identify the object type.
Unit Testing the page navigation using salesforce:
ReplyDelete--------------------------------------------------
PageReference opptyPage = new PageReference('/apex/BannerAdsLocal?postcode=2000');
system.Test.setCurrentPage(opptyPage);
Refer:
http://boards.developerforce.com/t5/Apex-Code-Development/Can-t-set-the-Current-Page-in-my-Unit-Test/td-p/196487
Test Class for save button:
ReplyDelete----------------------------
http://boards.developerforce.com/t5/Visualforce-Development/Test-Class-Save-Button/td-p/173902
It is not possible to create new record type through programming, we can query it from record type object to use appropriate record type in test method.
ReplyDeleteEnterprise WSDL: while working with single organization
ReplyDeletePartner WSDL: while working with multiple organization
On VF Page maximum of 1000 records we can display.
ReplyDeleteFrom Batch Class, it is not possible to call future methods because both batch class and future methods are asynchronous.
ReplyDeleteFor the pick list values, if we enter other values which are not in pick list it will take those values because in back end pick list data type is treated as text field.
ReplyDelete