Home    Forums    Feature Requests    Beta Issues    SysAid Resources    Documentation    Support
Hello Guest,  Login   
        
DOWNLOAD FREE EDITION
    
     Recent Topics    Hottest Topics    Online Members    Member Listing    Advanced Search
Email Notification and Custom Field  XML
Forum Index » Helpdesk
 
Author Message
scottybhoy
SysAider

SysAider from release 7 United Kingdom
Joined: 17/05/2010
Messages: 7
Offline

Hi

I have been customising our Email notification. We have two Custom fields and instead of the Email notification pulling in the values, I can only get the actual Key ID.

I have pasted the code below if anyone would be able to help and highlighted the line of code I am having trouble with. (Lines 4 & 20)

Also, on another note, when using HTML with the Email notifications, the PHP "IF" statements to hide items that have no entries, i.e. noted and attachments seem to cause a blank email to be generated, however, removing the PHP "IF" statement resolved this issue.

Any ideas on both issues:
1) Custom field Text Value in Email Notifications
2) "IF" PHP statement in HTML Emails

Any help appreciated.

<Current Email Notification Code Below>
SylvainG
Elite SysAider

SysAider from release 6.5 Canada
Joined: 26/04/2010
Messages: 117
Offline

Hi, how do you edit the email notification? Through the Customize / Customized Notifications or through another way?

Notifications have their own if/else scripted statements, not sure how it will handle scripted PHP code.

See http://www.ilient.com/help-page.htm?helpPageId=4250&edition=1&version=v8.1.02
scottybhoy
SysAider

SysAider from release 7 United Kingdom
Joined: 17/05/2010
Messages: 7
Offline

Hi

I'm using the Customize>Notifications method to change the emails. Have the HTML working without the IF statements which will do I suppose

Only really need to know how to add the Custom field value to the notification instead of the KeyID showing. Any help on how to do that would be appreciated.
SylvainG
Elite SysAider

SysAider from release 6.5 Canada
Joined: 26/04/2010
Messages: 117
Offline

In line 3, you have (line 4 is just text so I'm assuming you meant line 3) :

<font face="Arial" size="+3" color="Black"><b>${sr.getAddonFieldValue("custList2")}</b></font>[/color]

and in line 20 you have :

<font face="Arial" size="-1" color="Black"><b>Preferred Contact Method</b> ${sr.custList1}</font>

Is this a typo? Shouldn't be '1' or '2' in both location?

This message was edited 1 time. Last update was at 19/09/2011 11:04:49

scottybhoy
SysAider

SysAider from release 7 United Kingdom
Joined: 17/05/2010
Messages: 7
Offline

Ok, to confirm (as it looks as though I have made a typo with regards to the lines):

<font face="Arial" size="+3" color="Black"><b>${sr.getAddonFieldValue("custList2")}</b></font>[/color]

This line should show the Branch name of whoever submitted the ticket instead of the key value. We see the Key value instead of the Branch Name. I was trying different methods to pull in the text string, hence why the syntax is different on both lines, but none of them pull in the text string.

In this line:

<font face="Arial" size="-1" color="Black"><b>Preferred Contact Method</b> ${sr.custList1}</font>

this is the preferred contact method - we give them the choice of telephone or SysAid (Tel has the KeyID of 1 and SysAid has the KeyID of 2). The problem is, on this notification, instead of seeing "Telephone" or "SysAid" we see "1" or "2".

Ideally, both lines should show follow the same Syntax. I will upload latest code below. Hope I am not over complicating matters

scottybhoy
SysAider

SysAider from release 7 United Kingdom
Joined: 17/05/2010
Messages: 7
Offline

<font face = Arial>
<font face="Arial Black" size="+3" color="Black"><b>${StatusNotification}</b></font><br>
<font face="Arial" size="+3" color="Black"><b>${CustList2}</b></font><font face="Arial" size="+0" color="Black"><b>Branch</b></font>
<br>
<font face="Arial" size="+3" color="Red">${Urgency}</font> <font face="Arial" size="+3" color="Red">${DueDate}</font>
<font face="Arial" size="+0" color="Red"><b>Requested Priority</b></font>
<br>
<font face="Arial" size="+3" color="Purple">${Priority}</font>
<font face="Arial" size="+0" color="Purple"><b>Resolution Expected</b></font>
<br>
<font face="Arial" size="+3" color="Black">${Status}</font>
<font face="Arial" size="+0" color="Black"><b>Current Status</font>
<br>
<font face="Arial" size="+3" color="Black">${AssignedTo}</font>
<font face="Arial" size="+0" color="Black"><b>Assigned Technician</b></font>
<br>
<font face="Arial" size="+0" color="Black"><b><u>Service Request Information</u></b></font>
<font face="Arial" size="-1" color="Black"><b>Requested By:</b>${RequestUser}</font>
<font face="Arial" size="-1" color="Black"><b>Preferred Contact Method:</b> ${sr.custList1}</font><font face="Arial" size="-1" color="Black"><b>Title:</b> ${Title}</font>
<font face="Arial" size="-1" color="Black"><b>Category:</b> ${Category} > ${SubCategory}</font>
<br>
<font face="Arial" size="+0" color="Black"><b><u>Problem Description</u></b></font>
<font face="Arial" size="-1" color="Black">${Description}</font>
<br>
<font face="Arial" size="+0" color="Black"><b><u>Notes</b></u></font>
<font face="Arial" size="-1" color="Purple">${Notes}</font>
<br>
<font face="Arial" size="+0" color="Black"><b><u>Solution</u></b></font>
<font face="Arial" size="-1" color="Green">${Solution}</font>
<br>
<font face="Arial" size="+0" color="Black"><b><u>Attached Files</u><b></font>
<font face="Arial" size="-1" color="Blue">${LinkToAttachments}</font>
<H2>Total Queued Requests: $Total_Active_Requests<H2>

This message was edited 1 time. Last update was at 19/09/2011 11:17:13

SylvainG
Elite SysAider

SysAider from release 6.5 Canada
Joined: 26/04/2010
Messages: 117
Offline

Sorry, that's all the help I can give. Open an incident with Ilient, they can probably help.
scottybhoy
SysAider

SysAider from release 7 United Kingdom
Joined: 17/05/2010
Messages: 7
Offline

Thanks - no worries - at least you tried!
SA Consultant
SysAider

SysAider from release 6 Ecuador Pathfinder SysAid Certified
Joined: 06/07/2009
Messages: 40
Location: Ecuador
Offline

I also have this issue with the custom fields created through Entities.
the code: ${sr.getAddonFieldValue("CustomColumn71sr")} shows the key and not the value.
Did anybody get a resolution??
scottybhoy
SysAider

SysAider from release 7 United Kingdom
Joined: 17/05/2010
Messages: 7
Offline

remove the "sr." from the custom field and that should fix it - worked for me. Good Luck.
Forum Index » Helpdesk
Go to:   
Help Desk Software
Free Help Desk Software
Free Asset Management Software
SysAid Helpdesk Software
Web Based Help Desk Software
SysAid Help Desk Forum
General IT Discussion Forum
SysAid CSS Customer Service Software
Customer Support Software
   SysAid Technologies Ltd.
   Toll-Free phone center (U.S.): 1-800-686-7047
   Offices - U.S.617-231-0124
   Israel:+972-3-533-3675
   Email:helpdesk@sysaid.com
   Optimized by SEO Israel
   SysAid logos and other SysAid Technologies marks
   are trademarks or registered trademarks of
   SysAid Technologies Ltd.
   All Rights Reserved by SysAid Technologies Ltd.
   2002-2011
   Live Support Hours
   07:00 AM - 09:30 PM (UK)
   03:00 AM - 05:30 PM (EDT)

   We provide worldwide services, and we do our best
   to match the working times of customers from
   different time zones.

   SysAid Help Desk Software and Asset Management Software
Privacy Policy © Terms Of Use