最初に、メール-to-ケース固有のケース発生源を必ず割り当ててください。
これを使用すると、before insert アクションまたはこれに類似するトリガをケースに作成し、挿入しようとしているメール-to-ケースを検出して、そのプロセスをチェック/ブロックすることができます。
サンプルコード
trigger manageEmailCases on Case (before insert) {
// 新規ケースを調べ、メール-to-ケースがあるかどうかを確認し、それらを「処理します」
for(Case thisCase : trigger.new)
{
if(thisCase.Origin == 'Support Email') {
/* これが処理を行う場所です
if(thisCase.Subject.contains('OOO')) {
thisCase.name.addError('Not saving e2c');
}
*/
}
}
}
上記のロジックに組織の要件に完全に依存する実装を行います。
既知の発生源や件名をハードコードすることは選択のひとつですが、若干の悪いロジックを伴う「丸飲みの」ケースに対しても防御したいことがあります。自動的に閉じたり、「レビューのために」フラグを追加したりするなど、項目を管理するほうが適切でしょう
これが Salesforce に追加したい機能である場合は、IdeaExchange のアイデアに投票してください。
000387850

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.