<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Email Notification and Custom Field"]]></title>
		<link>http://www.sysaid.com/Sysforums/posts/list/112.page</link>
		<description><![CDATA[Latest messages posted in the topic "Email Notification and Custom Field"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Email Notification and Custom Field</title>
				<description><![CDATA[ Hi<br /> <br /> 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.<br /> <br /> 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)<br /> <br /> 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.<br /> <br /> Any ideas on both issues:<br /> 1) Custom field Text Value in Email Notifications<br /> 2) "IF" PHP statement in HTML Emails<br /> <br /> Any help appreciated.<br /> <br /> &lt;Current Email Notification Code Below&gt;<br /> [code]&lt;font face = Arial&gt;<br /> &lt;font face="Arial Black" size="+3" color="Black"&gt;IT Support Service Request&lt;/font&gt;&lt;br&gt;<br /> [color=red]&lt;font face="Arial" size="+3" color="Black"&gt;&lt;b&gt;${sr.getAddonFieldValue("custList2")}&lt;/b&gt;&lt;/font&gt;[/color]<br /> ???HELP???&lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;Branch&lt;/b&gt;&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+3" color="Red"&gt;${Urgency}&lt;/font&gt;<br /> &lt;font face="Arial" size="+0" color="Red"&gt;&lt;b&gt;Requested Priority&lt;/b&gt;&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+3" color="Purple"&gt;${Priority}&lt;/font&gt;<br /> &lt;font face="Arial" size="+0" color="Purple"&gt;&lt;b&gt;Resolution Expected&lt;/b&gt;&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+3" color="Black"&gt;${Status}&lt;/font&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;Current Status&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+3" color="Black"&gt;${AssignedTo}&lt;/font&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;Support Technician&lt;/b&gt;&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;&lt;u&gt;Service Request Information&lt;/u&gt;&lt;/b&gt;&lt;/font&gt;<br /> &lt;font face="Arial" size="-1" color="Black"&gt;&lt;b&gt;Requested By:&lt;/b&gt;  ${RequestUser}&lt;/font&gt;<br /> ???HELP???&lt;font face="Arial" size="-1" color="Black"&gt;&lt;b&gt;Preferred Contact Method&lt;/b&gt;  ${sr.custList1}&lt;/font&gt;<br /> &lt;font face="Arial" size="-1" color="Black"&gt;&lt;b&gt;Title:&lt;/b&gt;  ${Title}&lt;/font&gt;<br /> &lt;font face="Arial" size="-1" color="Black"&gt;&lt;b&gt;Category:&lt;/b&gt;  ${Category} &gt; ${SubCategory}&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;&lt;u&gt;Problem Description&lt;/u&gt;&lt;/b&gt;&lt;/font&gt;<br /> &lt;font face="Arial" size="-1" color="Black"&gt;${Description}&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;&lt;u&gt;Notes&lt;/b&gt;&lt;/u&gt;&lt;/font&gt;<br /> &lt;font face="Arial" size="-1" color="Purple"&gt;${Notes}&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;&lt;u&gt;Solution&lt;/u&gt;&lt;/b&gt;&lt;/font&gt;<br /> &lt;font face="Arial" size="-1" color="Green"&gt;${Solution}&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;&lt;u&gt;Attached Files&lt;/u&gt;&lt;b&gt;&lt;/font&gt;<br /> &lt;font face="Arial" size="-1" color="Blue"&gt;${LinkToAttachments}&lt;/font&gt;<br /> &lt;H2&gt;Total Queued Requests: $Total_Active_Requests&lt;H2&gt;[/code]]]></description>
				<guid isPermaLink="true">http://www.sysaid.com/Sysforums/posts/preList/7333/30788.page</guid>
				<link>http://www.sysaid.com/Sysforums/posts/preList/7333/30788.page</link>
				<pubDate><![CDATA[Fri, 16 Sep 2011 08:49:56]]> GMT</pubDate>
				<author><![CDATA[ scottybhoy]]></author>
			</item>
			<item>
				<title>Re:Email Notification and Custom Field</title>
				<description><![CDATA[ Hi, how do you edit the email notification? Through the Customize / Customized Notifications or through another way?<br /> <br /> Notifications have their own if/else scripted statements, not sure how it will handle scripted PHP code.<br /> <br /> See [url]http://www.ilient.com/help-page.htm?helpPageId=4250&edition=1&version=v8.1.02[/url]<br /> ]]></description>
				<guid isPermaLink="true">http://www.sysaid.com/Sysforums/posts/preList/7333/30798.page</guid>
				<link>http://www.sysaid.com/Sysforums/posts/preList/7333/30798.page</link>
				<pubDate><![CDATA[Sat, 17 Sep 2011 15:35:22]]> GMT</pubDate>
				<author><![CDATA[ SylvainG]]></author>
			</item>
			<item>
				<title>Re:Email Notification and Custom Field</title>
				<description><![CDATA[ Hi<br /> <br /> I'm using the Customize&gt;Notifications method to change the emails.  Have the HTML working without the IF statements which will do I suppose <img src="http://www.sysaid.com/Sysforums/images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" /><br /> <br /> 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.]]></description>
				<guid isPermaLink="true">http://www.sysaid.com/Sysforums/posts/preList/7333/30820.page</guid>
				<link>http://www.sysaid.com/Sysforums/posts/preList/7333/30820.page</link>
				<pubDate><![CDATA[Mon, 19 Sep 2011 07:20:27]]> GMT</pubDate>
				<author><![CDATA[ scottybhoy]]></author>
			</item>
			<item>
				<title>Re:Email Notification and Custom Field</title>
				<description><![CDATA[ In line 3, you have (line 4 is just text so I'm assuming you meant line 3) :<br /> <br /> &lt;font face="Arial" size="+3" color="Black"&gt;&lt;b&gt;${sr.getAddonFieldValue("custList[b][color=red]2[/color][/b]")}&lt;/b&gt;&lt;/font&gt;[/color] <br /> <br /> and in line 20 you have :<br /> <br /> &lt;font face="Arial" size="-1" color="Black"&gt;&lt;b&gt;Preferred Contact Method&lt;/b&gt;  ${sr.custList[b][color=red]1[/color][/b]}&lt;/font&gt;  <br /> <br /> Is this a typo? Shouldn't be '1' or '2' in both location?]]></description>
				<guid isPermaLink="true">http://www.sysaid.com/Sysforums/posts/preList/7333/30826.page</guid>
				<link>http://www.sysaid.com/Sysforums/posts/preList/7333/30826.page</link>
				<pubDate><![CDATA[Mon, 19 Sep 2011 11:04:32]]> GMT</pubDate>
				<author><![CDATA[ SylvainG]]></author>
			</item>
			<item>
				<title>Re:Email Notification and Custom Field</title>
				<description><![CDATA[ Ok, to confirm (as it looks as though I have made a typo with regards to the lines):<br /> <br /> &lt;font face="Arial" size="+3" color="Black"&gt;&lt;b&gt;${sr.getAddonFieldValue("[color=red]custList2[/color]")}&lt;/b&gt;&lt;/font&gt;[/color] <br /> <br /> 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.<br /> <br /> In this line:<br /> <br /> &lt;font face="Arial" size="-1" color="Black"&gt;&lt;b&gt;Preferred Contact Method&lt;/b&gt; ${[color=red]sr.custList1[/color]}&lt;/font&gt; <br /> <br /> 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".<br /> <br /> Ideally, both lines should show follow the same Syntax.  I will upload latest code below.  Hope I am not over complicating matters <img src="http://www.sysaid.com/Sysforums/images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" /><br /> <br /> ]]></description>
				<guid isPermaLink="true">http://www.sysaid.com/Sysforums/posts/preList/7333/30827.page</guid>
				<link>http://www.sysaid.com/Sysforums/posts/preList/7333/30827.page</link>
				<pubDate><![CDATA[Mon, 19 Sep 2011 11:14:23]]> GMT</pubDate>
				<author><![CDATA[ scottybhoy]]></author>
			</item>
			<item>
				<title>Re:Email Notification and Custom Field</title>
				<description><![CDATA[ &lt;font face = Arial&gt;<br /> &lt;font face="Arial Black" size="+3" color="Black"&gt;&lt;b&gt;${StatusNotification}&lt;/b&gt;&lt;/font&gt;&lt;br&gt;<br /> [color=red]&lt;font face="Arial" size="+3" color="Black"&gt;&lt;b&gt;${CustList2}&lt;/b&gt;&lt;/font&gt;[/color]&lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;Branch&lt;/b&gt;&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+3" color="Red"&gt;${Urgency}&lt;/font&gt; &lt;font face="Arial" size="+3" color="Red"&gt;${DueDate}&lt;/font&gt;<br /> &lt;font face="Arial" size="+0" color="Red"&gt;&lt;b&gt;Requested Priority&lt;/b&gt;&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+3" color="Purple"&gt;${Priority}&lt;/font&gt;<br /> &lt;font face="Arial" size="+0" color="Purple"&gt;&lt;b&gt;Resolution Expected&lt;/b&gt;&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+3" color="Black"&gt;${Status}&lt;/font&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;Current Status&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+3" color="Black"&gt;${AssignedTo}&lt;/font&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;Assigned Technician&lt;/b&gt;&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;&lt;u&gt;Service Request Information&lt;/u&gt;&lt;/b&gt;&lt;/font&gt;<br /> &lt;font face="Arial" size="-1" color="Black"&gt;&lt;b&gt;Requested By:&lt;/b&gt;${RequestUser}&lt;/font&gt;<br /> [color=red]&lt;font face="Arial" size="-1" color="Black"&gt;&lt;b&gt;Preferred Contact Method:&lt;/b&gt;  ${sr.custList1}&lt;/font&gt;[/color]&lt;font face="Arial" size="-1" color="Black"&gt;&lt;b&gt;Title:&lt;/b&gt;  ${Title}&lt;/font&gt;<br /> &lt;font face="Arial" size="-1" color="Black"&gt;&lt;b&gt;Category:&lt;/b&gt;  ${Category} &gt; ${SubCategory}&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;&lt;u&gt;Problem Description&lt;/u&gt;&lt;/b&gt;&lt;/font&gt;<br /> &lt;font face="Arial" size="-1" color="Black"&gt;${Description}&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;&lt;u&gt;Notes&lt;/b&gt;&lt;/u&gt;&lt;/font&gt;<br /> &lt;font face="Arial" size="-1" color="Purple"&gt;${Notes}&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;&lt;u&gt;Solution&lt;/u&gt;&lt;/b&gt;&lt;/font&gt;<br /> &lt;font face="Arial" size="-1" color="Green"&gt;${Solution}&lt;/font&gt;<br /> &lt;br&gt;<br /> &lt;font face="Arial" size="+0" color="Black"&gt;&lt;b&gt;&lt;u&gt;Attached Files&lt;/u&gt;&lt;b&gt;&lt;/font&gt;<br /> &lt;font face="Arial" size="-1" color="Blue"&gt;${LinkToAttachments}&lt;/font&gt;<br /> &lt;H2&gt;Total Queued Requests: $Total_Active_Requests&lt;H2&gt;]]></description>
				<guid isPermaLink="true">http://www.sysaid.com/Sysforums/posts/preList/7333/30828.page</guid>
				<link>http://www.sysaid.com/Sysforums/posts/preList/7333/30828.page</link>
				<pubDate><![CDATA[Mon, 19 Sep 2011 11:15:35]]> GMT</pubDate>
				<author><![CDATA[ scottybhoy]]></author>
			</item>
			<item>
				<title>Re:Email Notification and Custom Field</title>
				<description><![CDATA[ Sorry, that's all the help I can give. Open an incident with Ilient, they can probably help.]]></description>
				<guid isPermaLink="true">http://www.sysaid.com/Sysforums/posts/preList/7333/30834.page</guid>
				<link>http://www.sysaid.com/Sysforums/posts/preList/7333/30834.page</link>
				<pubDate><![CDATA[Mon, 19 Sep 2011 13:14:10]]> GMT</pubDate>
				<author><![CDATA[ SylvainG]]></author>
			</item>
			<item>
				<title>Re:Email Notification and Custom Field</title>
				<description><![CDATA[ Thanks - no worries - at least you tried! <img src="http://www.sysaid.com/Sysforums/images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">http://www.sysaid.com/Sysforums/posts/preList/7333/30835.page</guid>
				<link>http://www.sysaid.com/Sysforums/posts/preList/7333/30835.page</link>
				<pubDate><![CDATA[Mon, 19 Sep 2011 13:20:02]]> GMT</pubDate>
				<author><![CDATA[ scottybhoy]]></author>
			</item>
			<item>
				<title>Re:Email Notification and Custom Field</title>
				<description><![CDATA[ I also have this issue with the custom fields created through Entities.<br /> the code: ${sr.getAddonFieldValue("CustomColumn71sr")}  shows the key and not the value. <br /> Did anybody get a resolution??]]></description>
				<guid isPermaLink="true">http://www.sysaid.com/Sysforums/posts/preList/7333/34000.page</guid>
				<link>http://www.sysaid.com/Sysforums/posts/preList/7333/34000.page</link>
				<pubDate><![CDATA[Thu, 22 Mar 2012 19:12:29]]> GMT</pubDate>
				<author><![CDATA[ SA Consultant]]></author>
			</item>
			<item>
				<title>Re:Email Notification and Custom Field</title>
				<description><![CDATA[ remove the "sr." from the custom field and that should fix it - worked for me. Good Luck.]]></description>
				<guid isPermaLink="true">http://www.sysaid.com/Sysforums/posts/preList/7333/34014.page</guid>
				<link>http://www.sysaid.com/Sysforums/posts/preList/7333/34014.page</link>
				<pubDate><![CDATA[Mon, 26 Mar 2012 09:35:54]]> GMT</pubDate>
				<author><![CDATA[ scottybhoy]]></author>
			</item>
	</channel>
</rss>