[英]databasedotcom gem AssignmentRules
I am using the databasedotcom gem to generate Salesforce Leads on our web app. 我正在使用databasedotcom gem在我们的Web应用程序上生成Salesforce销售线索。
The issue I am having is when the Lead is created in this way, the Assignment Rule fires correctly and assigns the Lead to the desired users, however, no email is sent to the assigned user. 我遇到的问题是,以这种方式创建销售线索时,“分配规则”会正确触发,并将销售线索分配给所需的用户,但是,没有电子邮件发送给分配的用户。
I have found a comment by Salesforce on this issue here . 我发现通过Salesforce的评论对这个问题在这里 。
When a Lead or Case is created via the API, the API call would need to include:
通过API创建销售线索或案例时,API调用需要包括:
"AssignmentRuleHeader" to trigger the Assignment Rules.
“ AssignmentRuleHeader”触发分配规则。
"EmailHeader" with "triggerUserEmail" set to 'true' to generate assignment notification emails.
将“ triggerUserEmail”的“ EmailHeader”设置为“ true”以生成分配通知电子邮件。
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.
如果指定了AssignmentRuleHeader,但未指定EmailHeader,则将分配记录,但不会将分配通知发送给已分配的记录所有者。
I was wondering if there is any way to set the AssignmentRulesHeader and/or the EmailHeader via the databasedotcom gem or using the REST api in Rails. 我想知道是否有任何方法可以通过databasedotcom gem或在Rails中使用REST api来设置AssignmentRulesHeader和/或EmailHeader。
According to these links: 根据这些链接:
Lead assignment is always on for REST API calls and you can't set them. 潜在客户分配对于REST API调用始终处于启用状态,您无法设置它们。
If an assignment doesn't trigger, be sure to check if your default assignment rule is active. 如果分配没有触发,请确保检查默认分配规则是否处于活动状态。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.