New Batch#100 (10th Nov 2021) - Salesforce Admin + Dev Training (WhatsApp: +91 - 8087988044) :https://t.co/p4F3oeQagK

Friday, 24 August 2012

Review Points

* 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.







Please see the below Comments

10 comments:

  1. Workflow Rules for summer 2012:
    ----------------------------------
    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/

    ReplyDelete
    Replies
    1. Works only for master-detail relationships objects.

      Delete
  2. Within a 15 character Id the breakdown is:

    First 3 characters - The first 3 characters are the key prefix that identify the object type.

    ReplyDelete
  3. Unit Testing the page navigation using salesforce:
    --------------------------------------------------
    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

    ReplyDelete
  4. Test Class for save button:
    ----------------------------
    http://boards.developerforce.com/t5/Visualforce-Development/Test-Class-Save-Button/td-p/173902

    ReplyDelete
  5. 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.

    ReplyDelete
  6. Enterprise WSDL: while working with single organization

    Partner WSDL: while working with multiple organization

    ReplyDelete
  7. On VF Page maximum of 1000 records we can display.

    ReplyDelete
  8. From Batch Class, it is not possible to call future methods because both batch class and future methods are asynchronous.

    ReplyDelete
  9. For 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

Labels