- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2015 07:27 PM
Hey Again all you Genius's. I need your help again.
This is kind of a "idea" rather than it being functional (i think).
So here's the deal.
I love ${mail_script:scriptname} it's awesome. Very functional, works like a charm.
We have a request item that we have an approval email for. Then there is a UI action that was create to fire an Event. We created a 2nd email notification to accept this event to fire the "Resend email"
here's the deal.
The approval email we have a ${mailscript} at the very top which contains our approval/reject links. and Information about the request.
Then we have the BODY of the email. Contains the variables of the request.
Then we have 2 ${mailscript}'s at the bottom with some "for the administrator" which tells us the ticket number, what email notification send this email, and so forth.
Here is where the question comes in. We cant use an HTML template for all the notifications because we add different ${mailscripts}
What i'm wanting to know is:
Can we Create a template, that is dynamic like the mail scripts
So in my email notification, i dont have a template "attached" and used.
BUT. i used something like ${template:templatename} Because the body of my email wont change.
Is there a way to do something like so.
${mail_script:Approval-Reminder}
${mail_script:Approval-Links}
${template:templatename}
${mail_script:Approval-Additional}
${mail_script:Approval-Administrator}
Where the ${template} will actually pull the HTML data out of the template.
This way i would only have to update it 1 time and it would update in all 3 of my notifications.
I do not want to use the text box. i want to use HTML. i dont want to have to use the <mail_script> template.print() for every single line, Hence using the HTML (WYSIWYG)
Does that make any sense at all?
it would be great for the templates if you attach it as is to the email and it's used with no modifications. or if you could "call" the template data into the actual email notification like the mailscripts.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2015 08:03 PM
So i found my answer. Dot Walk.
Create an email script, say called "template"
Script will be
template.print(email_action.template.message_html);
That will take the reference field of the "template" from the email notification and then pull the HTML field from the template.
Then in the email notification you can do a ${mail_script:template} and that is all that is needed.
So now my email Notification html box looks like so:
It will translate into this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2016 04:32 PM
Sweet, thanks a lot mate.
One question though - the button text changes its color to purple(?) as soon as its clicked and it gets a bit difficult to read what is the text inside the buttons after clicking. Any chance we could revert it to the default 'WHITE' even after it gets clicked ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2016 05:07 PM
add this
i added it on lines 26 and 27.
//set the links to always be white, even after clicked.
template.print('<style type="text/css">; :visited {color:white;} :visited:active {color:white} </style>');
EDITED: removed the body {color:black;} :link {color:white;}
becuase it messes with the rest of the HTML. yes, these are links, but the link is hidden in the button, and what is visible is the "Text" not the link. therefor we done need to make the link white.
you just wanted the visited link to be white and that happens.
i had another link on the page that disappeared, (hidden in the white) so i had to edit this and remove the body {color:black;} :link {color:white;}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2016 05:42 PM
Awesome !!!
You can have this article in your blog as I'm sure there would be many users in this forum that could make use of this button feature in approval mails.
Cheers mate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2016 01:33 PM
Hey Suhas, have you implemented your buttons yet?
how does everyone like them.
I implemented mine this morning, no issues and people seem to them here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2016 03:05 PM
Oh mate, you need to see the people here...they have gone bonkers seeing the color-coded buttons in approval mails. Due to public demand, all the emails having 'Inbound Actions' defined on them have these buttons in them...
People are absolutely loving it here !!!!
See some of the snapshots of mails having the buttons :