Help Desk Software & Beyond
May 22, 2012, 12:50:47 AM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [MOD] Adding Custom Fields To Email Body  (Read 1990 times)
Ice Raider
Newbie
*

Karma: 0
Posts: 7


View Profile
« on: April 23, 2008, 06:54:15 PM »

I finally got this software working and I love it Grin, but I have been having some trouble with custom fields.

My question is how do you make custom fields show up in the body of the email message template for newticket.txt & newmessage.txt? We have a custom field that we are using that our help desk needs to change during the initial ticket submission and we want to make sure its communicated in all the email message that are sent out when ever the ticket is updated.
« Last Edit: April 23, 2008, 07:10:05 PM by sparky672 » Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #1 on: April 23, 2008, 06:59:18 PM »

Go to /setup.cgi to figure out which variable you want.  You'll need to know if it's c0, c1, c2, etc.

Simply add the macro into your email template...

Quote
(%c1%)

This assumes you're using the optional Layout Designer module.
« Last Edit: April 23, 2008, 07:11:19 PM by sparky672 » Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Ice Raider
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #2 on: April 25, 2008, 09:39:50 AM »

 Sad Thanks but it didn't work, now when the email goes it out having a line with (%c0%) in the text, any thoughts?

Here is what is in my newticket.txt file looks like.

Quote
Dear (%UNAME%)

Thank you for contacting Nu-West Tech Solutions, this is an automated message to confirm that we have received you service request and someone will review it shortly.

Your ticket ID is: (%TICKETID%)

Estimated Solution Response Time: (%c0%)

--------------------Message Content--------------------------
(%MESSAGE%)
--------------------------------------------------------------------
You can review and update your service request by clicking the link below:

(%TICKETURL%)

Sincerely,

Nu-West Information Systems Tech Support
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #3 on: April 25, 2008, 09:49:04 AM »

Sad Thanks but it didn't work, now when the email goes it out having a line with (%c0%) in the text, any thoughts?

Check over the email template very carefully for invisible characters or other formatting problems.

Even if that was an undefined or bad macro, TTX will ignore anything surrounded by these... (% %)

In other words, you should have seen any undefined/bad macros come through as blanks, you would never see the macro itself.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Ice Raider
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #4 on: April 28, 2008, 02:49:03 PM »

Thanks for your help, I reviewed the formatting and decided to try putting an upper case "C" instead of a lower case "c" and it worked.  Grin
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #5 on: April 28, 2008, 02:54:04 PM »

Hmm... flies in the face of the way the Perl module outputs that macro.

Glad it worked, anyway.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #6 on: April 28, 2008, 09:23:06 PM »

Obviously my mistake.

I reviewed the Perl code again and must have misread the lower case "c" before.

Undecided

Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 19 queries.