将电子邮件发送给不在办公室的销售人员的个案处理

Email to case handle for out of office salesforce

我为我的组织启用了电子邮件到个案功能。对于打开 OOO 通知的客户,它正在创建一个新案例而不是附加到旧案例。这为支持代理创建了一个开销任务来关闭此案例。对于这种情况,有没有更好的方法来处理新案例的创建。

您可以使用 InboundEmailHandler 编写处理传入电子邮件的代码,而不是配置的规则。您可以检查电子邮件主题中的 CaseNumber 或其他内容(见下文),查询数据库中具有相同编号的案例并重新打开它们/添加评论。如果找到 none - 创建新案例。

我做了几年了,最近有一个重要的更新。在过去,当您从 SF 回复案例时,它会注入一个“线程 ID”(组织 ID 和案例 ID 的缩写版本 - 一个全球唯一的标识符,可以轻松匹配内容)。此特殊字段在电子邮件模板或 https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_System_Cases_getCaseIdFromEmailThreadId.htm

中可用

关键更新https://help.salesforce.com/s/articleView?id=000355168&type=1 seems to move the matching from inspecting subject/body for the "thread id" to more standard email headers. Read up about the update, maybe after enabling it it'll just work, reopen cases better. If it won't - you could still write some code and use https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_System_Cases_methods.htm