How to access email script variables into email notification body??

Manikantahere
Tera Contributor

I am sending collective things as object through event Queue.

 

I am parsing them and storing them in different variables and want to use them in notification body in different places is there any way to access them inside body instead calling email script output directly ??

2 ACCEPTED SOLUTIONS

Uncle Rob
Kilo Patron

The most complex thing you can get without using Mail Script is just getting the entirety of parm1 or parm2 of the event.  Since you need to deconstruct and transform data from the object you've sent in the parms, you need a mail script.

View solution in original post

Sandeep Rajput
Tera Patron
Tera Patron

@Manikantahere You would need to use email script to access the variables. Inside your email script you can use template.print() function to print the email body in your desired format.

View solution in original post

5 REPLIES 5

Uncle Rob
Kilo Patron

The most complex thing you can get without using Mail Script is just getting the entirety of parm1 or parm2 of the event.  Since you need to deconstruct and transform data from the object you've sent in the parms, you need a mail script.

Sandeep Rajput
Tera Patron
Tera Patron

@Manikantahere You would need to use email script to access the variables. Inside your email script you can use template.print() function to print the email body in your desired format.

Thanks for your inputs however what i am looking for is i don't want to call email script all together but want to use variables defined in email script in notification body.

Is there any anyway that we can do it?

 

 

 

What you r saying is printing them at a  time by calling email script into body but i want to use them in different parts of email body.

No.  You NEED scripts to manipulate the object you're sending as a parameter.