I'm trying to build custom notifications per job using javascript variables but I'm unable to identify the current job name within the application. I've attempted to use WOB._name and WOB._fullname but the first one returns the same job name for every job in the application. The second one returns a seemingly random job name for every job in the application. This makes it impossible to build email text specific to each job within javascript.
I'm aware that each job notification can be customized but I'm working with over 1,200 jobs. I need to be able to dump the email body text into a variable and connect it to the appropriate job using the %WOB._fullname method.
For example.
Using symbolic variables assigned to the application by 'Run Javascript (At run time (for each job in the Application):'
if(WOB._fullname.search('Data_Quality') >=0 APPL.Email_Body = 'This is a Data Quality Notification.';
In this situation WOB._fullname returns a random job name from within the application. So the text being searched has nothing to do with the current job. Which then causes the wrong text to be returned in the variable %APPL.Email_Body.
Any help?
Thank you,
Scott McKinney