Created
January 26, 2015 10:07
-
-
Save karanrajs/e88d3fc5d2f41003ad3e to your computer and use it in GitHub Desktop.
Enforce assignment rule in apex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// to turn ON the Assignment Rules in Apex | |
Database.DMLOptions dmlOptn = new Database.DMLOptions(); | |
dmlOptn.assignmentRuleHeader.useDefaultRule = true; | |
leadObj.setOptions(dmlOptn); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment