Print this page

Assignment rules do not send notification email for Leads/Cases created via the API

Knowledge Article Number 000003781
Description

When a Lead or Case is created by the API, and the Assignment Rules are triggered, the record assigns as expected but no assignment notification email is sent. The assignment rules are configured to send an email.

Resolution

When a Lead or Case is created via the API, the API call would need to include:

* "AssignmentRuleHeader" to trigger the Assignment Rules.

* "EmailHeader" with "triggerUserEmail" set to 'true' to generate assignment notification emails.


If AssignmentRuleHeader is specified, and EmailHeader is not specified, then the records will be assigned but no assignment notifications will be sent to the assigned record owners.

 

Please refer to the following topics in the API Developer Guide for further information:

EmailHeader - http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_header_emailheader.htm

AssignmentRuleHeader - http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_header_assignmentruleheader.htm





promote demote