I am trying to use an exclusion script in an email send activity to inject data to a data extension. I have no intention of sending the email.
I have tried with both upsertDE() (the email send version of the function) and upsertData() (the script activity and landing page version of the function).
It works 100% of the time when running the script in an email send, script activity or landing page, but does not seem to work as an exclusion script within journey builder.
Content Block with Key 'test_script':
%%[ Var @subkey, @content, @name, @result Set @subkey = _subscriberkey Set @name = "John" Set @content = "Hello World" Set @result = 1 UpsertDE( "test_script_de" ,1 ,"subscriberkey",@subkey ,"name", @name ,"content",@content ) ]%% %%=v(@result)=%%