<?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 Re: Email notification in SPM forum</title>
    <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199214#M46200</link>
    <description>&lt;P&gt;Better to use Email Script for getting the content, as you would definitely need to do GlideRecord operations to get Demand Details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find examples of Email Scripts in:&lt;BR /&gt;&lt;A href="https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/script/server-scripting/reference/r_ExScptEmlNtfn.html" target="_blank"&gt;https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/script/server-scripting/reference/r_ExScptEmlNtfn.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And at the end you can use the email script you created on your notification:&lt;BR /&gt;${mail_script:YOUR_CREATED_EMAIL_SCRIPT}&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2025 09:04:28 GMT</pubDate>
    <dc:creator>Medi C</dc:creator>
    <dc:date>2025-03-07T09:04:28Z</dc:date>
    <item>
      <title>Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199142#M46194</link>
      <description>&lt;P&gt;I want to create a notification if someone tag us in worknotes other than OOB notification , I want customized notification&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 07:57:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199142#M46194</guid>
      <dc:creator>gauri06</dc:creator>
      <dc:date>2025-03-07T07:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199161#M46195</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/592567"&gt;@gauri06&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please Navigate to System Notifications &amp;gt; Email &amp;gt; Notification.&lt;/P&gt;&lt;P&gt;Look for the notification "Activity Stream @Mention Email". Duplicate it and adjust as per your requirements.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 08:07:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199161#M46195</guid>
      <dc:creator>Medi C</dc:creator>
      <dc:date>2025-03-07T08:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199192#M46196</link>
      <description>&lt;P&gt;I want it only for demand table and I want to customize the email body&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 08:42:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199192#M46196</guid>
      <dc:creator>gauri06</dc:creator>
      <dc:date>2025-03-07T08:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199198#M46197</link>
      <description>&lt;P&gt;If this should be only triggered for Demand Table. Then Please&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Duplicate the notification "&lt;SPAN&gt;Activity Stream @Mention Email"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Deactivate the OOTB one&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Adjust the "Advanced Condition" script as follow:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;function shouldSend() {
	var liveGroupProfileGR = new GlideRecord("live_group_profile");
	liveGroupProfileGR.setWorkflow(false);
	liveGroupProfileGR.addQuery("document", current.document);
	liveGroupProfileGR.addQuery("table", current.table);
	liveGroupProfileGR.addQuery("type", "!=", "support");
	liveGroupProfileGR.query();

	if(liveGroupProfileGR.next()) {
		var liveGroupMemberGR = new GlideRecord("live_group_member");
		liveGroupMemberGR.setWorkflow(false);
		liveGroupMemberGR.addQuery("group", liveGroupProfileGR.getUniqueValue());
		liveGroupMemberGR.addQuery("member", current.profile);
		liveGroupMemberGR.addQuery("state", "!=", "inactive");
		liveGroupMemberGR.query();

		if(liveGroupMemberGR.next()) {
			return false;
		}
	}

	var SecurityManager = new SNC.LiveFeedSecurityManager();
	return SecurityManager.canReadField(current.user, current.table, current.document, current.field_name);
}

shouldSend() &amp;amp;&amp;amp; current.table == "dmn_demand";&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;You can customize the content as per your requirements&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 08:51:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199198#M46197</guid>
      <dc:creator>Medi C</dc:creator>
      <dc:date>2025-03-07T08:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199202#M46198</link>
      <description>&lt;P&gt;I want to edit the body so that it should take the input from demand table in notification such as number,short_description.etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 08:54:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199202#M46198</guid>
      <dc:creator>gauri06</dc:creator>
      <dc:date>2025-03-07T08:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199203#M46199</link>
      <description>&lt;UL&gt;&lt;LI&gt;Subject: "[Record Number] - [Demand Short Description]"&lt;/LI&gt;&lt;LI&gt;Body:&lt;BR /&gt;You have been mentioned in&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Record Number&lt;/STRONG&gt;&lt;/SPAN&gt; - &lt;SPAN&gt;&lt;STRONG&gt;Demand Short Description.&amp;nbsp;&lt;/STRONG&gt;The comment in which you were mentioned was made by&amp;nbsp;&lt;STRONG&gt;Name of Person who comment&lt;/STRONG&gt; and they said "Insert the text of the comment they were tagged in". The comment was made on &lt;STRONG&gt;insert date and time of comment&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Please review and act if needed. You may also reply to this email to update the notes in the ServiceNow Demand record.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;In the above requirements blue indicates a hyper link to the record. Bold indicates a variable where you gather data from the record and insert it into the email. Underlined text should be underlined in the email. This should be the email body&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 07 Mar 2025 08:55:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199203#M46199</guid>
      <dc:creator>gauri06</dc:creator>
      <dc:date>2025-03-07T08:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199214#M46200</link>
      <description>&lt;P&gt;Better to use Email Script for getting the content, as you would definitely need to do GlideRecord operations to get Demand Details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find examples of Email Scripts in:&lt;BR /&gt;&lt;A href="https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/script/server-scripting/reference/r_ExScptEmlNtfn.html" target="_blank"&gt;https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/script/server-scripting/reference/r_ExScptEmlNtfn.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And at the end you can use the email script you created on your notification:&lt;BR /&gt;${mail_script:YOUR_CREATED_EMAIL_SCRIPT}&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 09:04:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199214#M46200</guid>
      <dc:creator>Medi C</dc:creator>
      <dc:date>2025-03-07T09:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199224#M46201</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/592567"&gt;@gauri06&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then do this&lt;/P&gt;
&lt;P&gt;1) ensure the OOTB notification "Activity Stream @Mention Email" doesn't trigger for your &lt;STRONG&gt;dmn_demand&lt;/STRONG&gt; table&lt;/P&gt;
&lt;P&gt;Do this and save&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnkurBawiskar_0-1741338419401.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/424856iD84A3BDEB8725BC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnkurBawiskar_0-1741338419401.png" alt="AnkurBawiskar_0-1741338419401.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Change the condition to this Table = &lt;STRONG&gt;dmn_demand&lt;/STRONG&gt;, Change the Name and Click &lt;STRONG&gt;Insert and Stay&lt;/STRONG&gt; and then add your own content in this newly created notification&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnkurBawiskar_1-1741338527297.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/424858i25FF41716D430708/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnkurBawiskar_1-1741338527297.png" alt="AnkurBawiskar_1-1741338527297.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 09:09:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3199224#M46201</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-03-07T09:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3200166#M46217</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/592567"&gt;@gauri06&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing good.&lt;/P&gt;
&lt;P&gt;Did my reply answer your question?&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 07:32:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3200166#M46217</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-03-08T07:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3200233#M46222</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/592567"&gt;@gauri06&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you are doing well!&lt;/P&gt;&lt;P&gt;Did it work ? Was my reply helpful?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 11:50:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3200233#M46222</guid>
      <dc:creator>Medi C</dc:creator>
      <dc:date>2025-03-08T11:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202418#M46241</link>
      <description>&lt;P&gt;Yes thank you !&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 07:14:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202418#M46241</guid>
      <dc:creator>gauri06</dc:creator>
      <dc:date>2025-03-11T07:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202427#M46242</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/592567"&gt;@gauri06&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please mark this response as correct so that in future it will help other members&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnkurBawiskar_0-1741677582986.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/425671iCD5A4E9DB9CA7D93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnkurBawiskar_0-1741677582986.png" alt="AnkurBawiskar_0-1741677582986.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 07:19:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202427#M46242</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-03-11T07:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202428#M46243</link>
      <description>&lt;P&gt;but by doing this way it is triggering two mail when we want to trigger for a demand tableI have attach a screenshot for the same&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 07:20:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202428#M46243</guid>
      <dc:creator>gauri06</dc:creator>
      <dc:date>2025-03-11T07:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202501#M46244</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966"&gt;@Ankur Bawiskar&lt;/a&gt;&amp;nbsp;its triggering multiple record&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 08:42:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202501#M46244</guid>
      <dc:creator>gauri06</dc:creator>
      <dc:date>2025-03-11T08:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202515#M46245</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/87031"&gt;@Medi C&lt;/a&gt;&amp;nbsp; do I need to use the same logic for the script as of the one used in&amp;nbsp;&lt;SPAN&gt;"Activity Stream @Mention Email".can you please help me in creating the script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 08:49:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202515#M46245</guid>
      <dc:creator>gauri06</dc:creator>
      <dc:date>2025-03-11T08:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202516#M46246</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/592567"&gt;@gauri06&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;did you follow all the steps above?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 08:49:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202516#M46246</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-03-11T08:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Email notification</title>
      <link>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202530#M46247</link>
      <description>&lt;P&gt;yes&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 08:56:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/spm-forum/email-notification/m-p/3202530#M46247</guid>
      <dc:creator>gauri06</dc:creator>
      <dc:date>2025-03-11T08:56:18Z</dc:date>
    </item>
  </channel>
</rss>

