Change count of output result transition from custom workflow activity
I've created a custom workflow activity that calls an API to get exclusions of recipients.
I delete the relevant records from the temporary activity schema (vars.tableName / vars.targetSchema) but the output transition still shows the previous count that was input to my custom activity. If I check the data the count is different than shown in the workflow canvas.
I've tried xtk.session.write and sql to delete from the target schema. Both work to delete but none update the count.
How can I delete from the temporary schema for the activity and have a correct count on the output transition?