I'm trying to create an exclusion script based on the output of a Code snippet which looks like:
My exclusion script looks like:
When I make a call to send the triggered send I can see the queue being filled, however nothing is being send, even if the output doesn't match the exclusion script. Any ideas on what I'm doing wrong?
Thanks a lot!
Update DE Record This is the record information for the column Attributes
I've also tried the following:
%%[ var @str, @var, @sendEmail /* Set the value to check */ SET @var = false /* Set the string to check */ Set @str = AttributeValue(sendEmail) /* Does it match */ if IndexOf(@str,@var) > 0 then Set @sendEmail = "dontSendReceipt" else Set @sendEmail = "sendReceipt" endif ]%% %%=v(@sendEmail)=%%
When testing the email in preview and test the correct value is being populated. My exclusion script looks now like this:
TreatAsContent(ContentBlockbyID('127567')) == dontSendReceipt
But still no luck..