You need to sign in to do that
Don't have an account?
Sanne Kjær Sørensen 4
No email is send when assigned Rule is triggered from API (external LEAD system)
No email is send using Assignment Rules when Lead is created from external system. The LEads is assigned to the correct Queue. When I do manual LEad creation the Mail is send. Why is that
We add the Apex code: dmlOpts.EmailHeader.triggerUserEmail = true
The email is an HTML Template and the assignement Rules is working: TEST: when I create an email manully within SAlesforce (create new LEad) the email IS send.
yes, the Assignement Rule got a template (See attachment1) and the LEad is assignemed to the correct Queue
(see attachmenet 2). Attechment1 also shows the Criteria
We add the Apex code: dmlOpts.EmailHeader.triggerUserEmail = true
The email is an HTML Template and the assignement Rules is working: TEST: when I create an email manully within SAlesforce (create new LEad) the email IS send.
yes, the Assignement Rule got a template (See attachment1) and the LEad is assignemed to the correct Queue
(see attachmenet 2). Attechment1 also shows the Criteria
When the Lead comes from the external system, does it trigger the Assignment Rule aswell? I mean, is the Assignment rule getting triggered in both scenarios or just when you create it within Salesforce?
If the answer to this is "just when it's created within Salesforce", then it's quite possible that you need to "force" the Assignment rule execution.
In order to do that, add this dmlOpt:
Remember that you have to set this options before inserting the Lead, in this example: newLead.setOptions(dmlOpts);
newLead would be the list of Leads you want to insert.
Hope this helps you :)
Kind regards,
Carlos.
but this did NOT help. Thanks for you help, we Will look info out Apex script once more. Have a Nice Day. Br. Sanne