Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

compose email with different templates

Peter Halsema
Tera Contributor

We are currently using email from a base-table. (e.g. incident) and when you press on the mail-button it opens the email-client (with prefilled a signature). in the email-screen, we then would like to select a choice. and based on that choice it adds in different information (with email-script) its a bit like quick (canned) messages. 

but the disadvantage from quick-messages is that you cannot use email-script. So is there a way to accomplish this functionality.

I prefer smth like this in stead of adding a field on e.g. incident table with a template to choose, or a new (extra)email-button.

I also cannot find popupOpenEmailClient in where I can e.g. tweak some code.

4 REPLIES 4

Brian Lancaster
Kilo Patron

I believe you override the email client template with your own.  And it looks like if you change it to plain text you can put a mail script in it.

Dear Brian,

I don't know what you mean.
yes I know I can create a email client template. (and we also use it)

but I actually want to open the email-form (by pressing the button.) and in that (compose-email)screen I want to add a new field. (where I can make a selection which client-template I would like to use.) e.g. email to caller / or email to supplier. 

I could also make a email-script that contains it all, and the user has to remove the fields/lines he dont want. but that is not "sleek".

some guidelines are appreciated

 

Peter Halsema
Tera Contributor

I eventually found the thing I was looking for. and it was not as I first expected, but is using a ui-page that is doing the picking-trick.

https://community.servicenow.com/community?id=community_question&sys_id=537b8361db9cdbc01dcaf3231f96195f

 

Glad you found that as I clearly misunderstood what you were asking.