<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Adding ticket Description in the mention email. in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/adding-ticket-description-in-the-mention-email/m-p/3003132#M515</link>
    <description>&lt;P&gt;Hi i wanted to add in the description in the mention email at the Email script. But when i tried to put in the code to display but all it gives was undefined. but it was able to get other information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;	var recordGR = new GlideRecord(current.table);
	if(recordGR.get(current.document)) {
		var displayValue = recordGR.getDisplayValue();
		var subjectText = displayValue
			? displayValue
			: "a record discussion";
		var tableDisplay = recordGR.getClassDisplayValue();
		var linkText = displayValue
			? "the " + tableDisplay  + " record " + displayValue
			: "this " + tableDisplay  + " record ";

		email.setSubject("You have been mentioned in " + subjectText);
		template.print("&amp;lt;p&amp;gt;You have been mentioned by " + current.user_from.name +"&amp;lt;/p&amp;gt;");
		template.print("&amp;lt;p&amp;gt;description "+ current.desciption + "&amp;lt;/p&amp;gt;");
		template.print("&amp;lt;p&amp;gt; comments as :&amp;lt;p&amp;gt;" +  recordGR.comments.getJournalEntry(1) +"&amp;lt;/p&amp;gt;&amp;lt;/p&amp;gt;") ;
		template.print("&amp;lt;p&amp;gt; in &amp;lt;a href='/" + recordGR.getRecordClassName() + ".do?sys_id=" + recordGR.getUniqueValue() + "'&amp;gt;" + linkText + "&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;");
	}
	&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yuhengl_0-1722325422957.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/375307iD4B3BFA90A8E6267/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="yuhengl_0-1722325422957.png" alt="yuhengl_0-1722325422957.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 07:45:57 GMT</pubDate>
    <dc:creator>yuhengl</dc:creator>
    <dc:date>2024-07-30T07:45:57Z</dc:date>
    <item>
      <title>Adding ticket Description in the mention email.</title>
      <link>https://www.servicenow.com/community/community-central-forum/adding-ticket-description-in-the-mention-email/m-p/3003132#M515</link>
      <description>&lt;P&gt;Hi i wanted to add in the description in the mention email at the Email script. But when i tried to put in the code to display but all it gives was undefined. but it was able to get other information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;	var recordGR = new GlideRecord(current.table);
	if(recordGR.get(current.document)) {
		var displayValue = recordGR.getDisplayValue();
		var subjectText = displayValue
			? displayValue
			: "a record discussion";
		var tableDisplay = recordGR.getClassDisplayValue();
		var linkText = displayValue
			? "the " + tableDisplay  + " record " + displayValue
			: "this " + tableDisplay  + " record ";

		email.setSubject("You have been mentioned in " + subjectText);
		template.print("&amp;lt;p&amp;gt;You have been mentioned by " + current.user_from.name +"&amp;lt;/p&amp;gt;");
		template.print("&amp;lt;p&amp;gt;description "+ current.desciption + "&amp;lt;/p&amp;gt;");
		template.print("&amp;lt;p&amp;gt; comments as :&amp;lt;p&amp;gt;" +  recordGR.comments.getJournalEntry(1) +"&amp;lt;/p&amp;gt;&amp;lt;/p&amp;gt;") ;
		template.print("&amp;lt;p&amp;gt; in &amp;lt;a href='/" + recordGR.getRecordClassName() + ".do?sys_id=" + recordGR.getUniqueValue() + "'&amp;gt;" + linkText + "&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;");
	}
	&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yuhengl_0-1722325422957.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/375307iD4B3BFA90A8E6267/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="yuhengl_0-1722325422957.png" alt="yuhengl_0-1722325422957.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 07:45:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/adding-ticket-description-in-the-mention-email/m-p/3003132#M515</guid>
      <dc:creator>yuhengl</dc:creator>
      <dc:date>2024-07-30T07:45:57Z</dc:date>
    </item>
  </channel>
</rss>

