+ Start a Discussion

Can a trigger use an inactive assignment rule?

I'd like to setup a trigger for leads which fires when the owner ID equals a queue we have setup, which would then re-assign the leads based on an inactive assignment rule - is this possible?


If so, how would I go about doing this?

David VPDavid VP

That would kind of defeat the purpose of deactiviting the assignment rule in the first place wouldn't it ?


Why don't you just activate the assignment rule and have it do what it's supposed to do : assigning leads.

You can always use this in combination with the Apex code in your trigger (which could for example flag a hidden checkbox to let the assignment rule know it can touch the lead or not)

Sorry, I should have been more clear - we have the need for more than one set of assignment rules, since you can't have subset rules within the master ruleset. This makes it necessary to somehow trigger an inactive rule, or randomize it somehow.