0

I have written a trigger to assign a new lead to the owner based on certain logic.

When I manually create the lead, the logic works perfectly i.e assigns the lead correctly.

However, we are not going to manually create leads, the leads will be created from the web2lead form.

When I submit the lead from the Web2Lead form, the lead owner is the the default owner set up in the Lead Settings.

How Can I ensure the leads submitted from the web form are assigned based on the trigger logic and not to the default owner. ?

1
  • W2L will use the Lead Assignment rules, if any ....these assignment rules execute after the triggers run when the lead is inserted
    – cropredy
    Feb 24 at 1:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.