Hi Alex,
Yes, I got it now. Thanks for clarifying.
But, as per my understanding, we can't use complex JavaScripts in the Subject Line.
Because all variables and methods of JS are not defined for Subject Line.
I tried to run some JS in the subject line and tried to fetch the data using queryDef, but got the below error :
js Error while executing the method 'ExecuteQuery' of service 'xtk:queryDef'.
And when I tried the same JS in the JavaScript Activity, it was running fine.
It means that ExecuteQuery method is not available for Subject Line, That's why I conclude that we can't use complex JS in the Subject Line. I hope it helps.