email client template - how to use a dynamic FROM value?

Zod
Giga Guru

Hi All,

as I learned the hard way, just using mail scripts in the body (that will derive the proper from and reply_to values) will not work  

But ok ... for the reply to I can use some easy js like "javascript:current.assignment_group" .... BUT how to go ahead with more complex script which I need to define the FROM field?????

PLEASE HELP.

Best would be to be able to add a email script .. but this does not work (tried like in the body with ${mail_script:abc_scipt_client}

1 ACCEPTED SOLUTION

You can write a script include and call the script include in the java script. in script include, you can include the validation of assignment group.



Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

21 REPLIES 21

sachin_namjoshi
Kilo Patron
Kilo Patron

Please use below example   to set From address in email script.



find_real_file.png



Regards,


Sachin


... i made myself not clear I assume



I was talking about the CLIENT TEMPLATE (will correct the question - sorry).


The FROM field there ... needs to be set properly.


You can create mailscript in body of client template and use this method setFrom in your client template.



Regards,


Sachin


This was my first idea but did not work ;-(


But maybe only because I'm in a scoped app?


Log tells me: "syslog_transaction not found for AjaxClientTiming: sysId: , table: , view: Default view, form: email_client_template"



Works fine when used in a normal notification ...