I have been trying to use exclusion script to exclude customers from receiving emails triggered from API using triggered send.
The process followed is as below :
Create a standard DE
Test_Opt_Out_List
with the excluded customers ( containing subscriberkey and emailaddress fields ).In the triggered send definition have specified the following code :
ROWCOUNT(LOOKUPROWS("Test_Opt_Out_List","SubscriberKey",_subscriberkey))>0
Each time the API is triggered with the same subscriber key present in Test_Opt_Out_List, the record is getting added to the Triggered DE and email is being sent.
Can you please let me know if I am missing anything here ? I also tried creating the DE with Domain Exclusion template and used the same exclusion script , I am still receiving the emails.