I'm using an exclusion script that uses an HTML Content Block, is in the Content Block where all the ampscript logic lives, for the sake of simplicity, the ampscript in the Content Block only declares variables and returns the string 'excluded', in the Exclusion Script, the ampscript expression checks for this word. It all works fine when tested against Data Extensions with up to 2800 records, anything bigger than that just hangs and after 5-7 minutes, the send gets cancelled.
As a side note, before the January release, I could just check directly for the return variable in the Content Block, for example,
%%=v(@result)=%%, but now, I've noticed that the result variable gets surrounded by HTML (table tag), so, I ended up checking for a specific word in the string returned from the Content Block.
Has anyone tried such scenario using an exclusion script after January release?
%%[ VAR @Debug, @SquadId, @job, @result, @MID, @subKey SET @Debug = 1 SET @SquadId = 'DummyValue' SET @job = jobid SET @result = 'excluded' SET @MID = memberid SET @subKey = AttributeValue('_subscriberkey') IF @Debug == 1 THEN SET @result = 'excluded' ENDIF ]%%%%=v(@result)=%%
IndexOf(TreatAsContent(ContentBlockByID(12345)), "excluded") > 0