简体   繁体   English

databasedotcom gem AssignmentRules

[英]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.

相关问题 databasedotcom gem sobject问题 - databasedotcom gem sobject issue Rails中的显示方法不适用于Databasedotcom gem - Show method in Rails not working with databasedotcom gem 在没有模型的情况下验证电子邮件格式-Databasedotcom gem - Validate email format without model - databasedotcom gem Ruby Gem“Databasedotcom”同样的对象问题 - Ruby Gem “Databasedotcom” same object issue Salesforce REST API:Databasedotcom gem可上传附件 - Salesforce REST API: Databasedotcom gem to upload attachments Databasedotcom gem:根据会话ID检索用户信息 - Databasedotcom gem : Retrieve user info based on session id Salesforce Databasedotcom gem:查询不会返回正确的结果 - Salesforce databasedotcom gem: Query doesn't return right results 在Rails中未为此组织启用REST API(使用databasedotcom gem的Salesforce API) - The REST API is not enabled for this Organization (Salesforce API using databasedotcom gem) in Rails 使用databasedotcom ruby​​ gem访问Salesforce时,如何获取特定用户(或帐户)的ActivityHistory - When using databasedotcom ruby gem to access salesforce, how do I get the ActivityHistory for a particular User (or Account) 使用Databasedotcom-rails gem从RoR应用程序创建Salesforce自定义对象记录时出现NoMethodError - NoMethodError when creating a Salesforce custom object record from a RoR app with databasedotcom-rails gem
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM