I wrote a trigger that figures out who the Lead owner should be based on some rules that we have.
When I execute this via web-to-lead, my trigger assigns the appropriate person but in the order of operations after that, Salesforce runs the Lead 'Assignment Rules.'
Since I have no formal 'assignment rules' set up, the system assigns every lead to the default lead owner. This only happens in the web to lead scenario - when I manually create a lead or bulk load them with the dataloader, they get assigned properly.
Is there a way in Apex to tell the system not to run the assignment rules or is there a way around this situation?