Paul Trenter Posted March 6, 2017 Share Posted March 6, 2017 Hi there, we are configuring our email templates and we would like to include the relevant Priority in the Subject Heading. The script at the moment reads: {{.H_PK_REFERENCE}} - {{.h_fk_priorityname}} Request Logged by CCS Service Desk This generates the following Subject IN00137 - p3 Request Logged by CCS Service Desk It's the Priority display I want to change. Rather than "3" I'd prefer it to read "Priority 3" but I can't find the relevant field that needs changing. Any pointers appreciated. Link to comment Share on other sites More sharing options...
Martyn Houghton Posted March 6, 2017 Share Posted March 6, 2017 @Paul Trenter It will becoming from the Priorities created under Services.> Priorities. Unfortunately you are not able to edit these currently, so would have to recreate them with the new more descriptive name. This also means you may need to update any BPM you have that refer to them. Cheers Martyn Link to comment Share on other sites More sharing options...
Paul Trenter Posted March 6, 2017 Author Share Posted March 6, 2017 Thanks Martyn Found that, and ours are simply P1-P5. The 'P' is a capital letter. We can recreate them if need be but I guess that would still display all in lower case. Is there any way around that? Link to comment Share on other sites More sharing options...
Martyn Houghton Posted March 6, 2017 Share Posted March 6, 2017 @Paul Trenter If you alter the insert variable name to be in mixed case i.e. {{.H_Fk_PriorityName}} that should trigger it to insert the value in the format as it is set in priority list. Link to comment Share on other sites More sharing options...
Victor Posted March 6, 2017 Share Posted March 6, 2017 @Paul Trenter you don't necessarily have to recreate them... you can also use ESP conditions in email templates where you can check for a variable value and depending on result have a custom text displayed... For example if '{{.h_fk_priorityname}}' = 'P3' then display 'Priority 3' or 'Medium Priority'... or any text you like... you can chain these conditions to cater for all priorities possible.https://wiki.hornbill.com/index.php/Email_Template_Variables EDIT: Martyn's advice about capitalising still applies. Link to comment Share on other sites More sharing options...
Steve Giller Posted March 7, 2017 Share Posted March 7, 2017 16 hours ago, Paul Trenter said: Thanks Martyn Found that, and ours are simply P1-P5. The 'P' is a capital letter. We can recreate them if need be but I guess that would still display all in lower case. Is there any way around that? {{.h_fk_priorityname}} will display lower case, {{.H_fk_priorityname}} will display Capitalised Words, and {{.H_FK_PRIORITYNAME}} will display upper case. Link to comment Share on other sites More sharing options...
Paul Trenter Posted March 7, 2017 Author Share Posted March 7, 2017 Thanks all for the replies. Exactly what I was after. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now