ジャーニーの設計時、さまざまな理由で 1 つ以上のメールアクティビティからエントリオーディエンス集団の一部を除外する場合があります。連絡先を除外する一般的な理由として、その連絡先が現時点で別のジャーニーで有効であることが挙げられます。Journey Builder のメールアクティビティで除外スクリプトを使用し、特定の連絡先を送信から除外する方法を解説します。AMPscript を使用して、特定の条件に合致する連絡先を除外します。
ROWCOUNT(LOOKUPROWS("Exclusion_DATA_EXTENSION_NAME","EMAIL_ADDR_FIELD_NAME", EMAILADDR))>0
(ROWCOUNT(LOOKUPROWS("Exclusion_DATA_EXTENSION_NAME_1", "EMAIL_ADDR_FIELD_NAME", EMAILADDR)) > 0)
OR
(ROWCOUNT(LOOKUPROWS("Exclusion_DATA_EXTENSION_NAME_2", "EMAIL_ADDR_FIELD_NAME", EMAILADDR)) > 0)
%%[
set @count = ROWCOUNT(LOOKUPROWS("Exclusion_DATA_EXTENSION_NAME","EMAIL_ADDR_FIELD_NAME", EMAILADDR))
]%%
%%=v(@count)=%%
次の除外スクリプトを使用してコードスニペットの結果が出力されます。
TreatAsContent(ContentBlockbyId("CODE_SNIPPET_ID")) > 0
メモ: 除外スクリプトをメールアクティビティ内のオプションとして使用できない場合があります。その場合は、Marketing Cloud サポートに連絡してこの機能の有効化をご依頼ください。
000384149

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.