Quantcast
Channel: Active questions tagged ampscript - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 359

exclusion script for a matrix based on criteria type

$
0
0

I'm trying to write an exclusion script based on multiple criteria. Here's my general setup:

sending and exclusion Data extension examples

In my Sending-DE, I have a column called "criteria-type" - in my Exclusion-DE, I have 5 criteria columns (news, invite, survey, article, announcement).

Using the example above, I want the exclusion script to find column "invite" and exclude any contact that has "TRUE" in the column. (False or blank will get the email). In this case, subscriber 789 would not get the email, but everyone else would.

I have this exclusion script:

ROWCOUNT(LOOKUPROWS("Exclusion-DE", "subKey", _subscriberkey, [criteria-type], 'True'))>0

But it errors whenever I validate the journey:

Exclusion filter validation failed: Exclusion filter is invalid. Error 1 Invalid Function Call The specified attribute or custom object field name was not found for this client. Function Call: LOOKUPROWS("Exclusion-DE", "subKey", _subscriberkey, [criteria-type], 'True') Attribute or Field Name: criteria-type Invalid Content >>> ROWCOUNT(LOOKUPROWS("Exclusion-DE", "subKey", _subscriberkey, [criteria-type], 'True'))

Any ideas for this one? Any help is appreciated in advance!


Viewing all articles
Browse latest Browse all 359

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>