Tag: Lead

  • Salesforce Interview Questions – Part 11

    101. How to force lead assignment rule via Apex while updating or adding the Lead? Ans : To enforce Assignment Rules in Apex you will need to perform following steps: Instantiate the “Database.DMLOptions” class. Set the “useDefaultRule” property of “assignmentRuleHeader” to True. Finally call a native method on your Lead called “setOptions”, with the Database.DMLOptions…