<?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 How to trigger notification through event when data loaded and got error through Transform map in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835411#M492337</link>
    <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;I'm trying to trigger a notification when any user's try's to load a data using transform map and he gets few error/skipped/ignored.&lt;/P&gt;
&lt;P&gt;I have created notification and trying to trigger using event but how to use event on transform map table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me with the steps if possible.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Chaitanya&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jul 2020 11:28:37 GMT</pubDate>
    <dc:creator>Chaitanya Redd1</dc:creator>
    <dc:date>2020-07-16T11:28:37Z</dc:date>
    <item>
      <title>How to trigger notification through event when data loaded and got error through Transform map</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835411#M492337</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;I'm trying to trigger a notification when any user's try's to load a data using transform map and he gets few error/skipped/ignored.&lt;/P&gt;
&lt;P&gt;I have created notification and trying to trigger using event but how to use event on transform map table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me with the steps if possible.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Chaitanya&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:28:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835411#M492337</guid>
      <dc:creator>Chaitanya Redd1</dc:creator>
      <dc:date>2020-07-16T11:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger notification through event when data loaded and got error through Transform map</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835412#M492338</link>
      <description>&lt;P&gt;Hi Chaitanya,&lt;/P&gt;
&lt;P&gt;below link has the solution/approach. please go through&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=2c12b4d5db95d49014d6fb24399619e9" rel="nofollow"&gt;https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=2c12b4d5db95d49014d6fb24399619e9&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=5dd54b21db1cdbc01dcaf3231f96195a" rel="nofollow"&gt;https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=5dd54b21db1cdbc01dcaf3231f96195a&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:45:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835412#M492338</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-07-16T11:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger notification through event when data loaded and got error through Transform map</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835413#M492339</link>
      <description>&lt;P&gt;Thanks Ankur, I need one help here i'm creating notification how to show this fields and there values&lt;/P&gt;
&lt;P&gt;like below in a table form. I have tried email script but no use. Can you help me how to show this fields in notification.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/48395i45E2CC3284CB4359/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Chaitanya&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:13:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835413#M492339</guid>
      <dc:creator>Chaitanya Redd1</dc:creator>
      <dc:date>2020-07-16T12:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger notification through event when data loaded and got error through Transform map</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835414#M492340</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you can get to know how many records got inserted/skipped/updated etc&lt;/P&gt;
&lt;P&gt;See below; Hope this helps you get started&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Email Notification:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/48401i74883D67AE7F7850/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/48396i49FE3194AA835C34/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Email Script:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/48399i9AE5E925D04F3B06/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 13:03:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835414#M492340</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-07-16T13:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger notification through event when data loaded and got error through Transform map</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835415#M492341</link>
      <description>&lt;P&gt;I need this in table form as shown below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/48398i5B4471116381B6F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you help me I have written below script but it's not showing up&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;var transformhistroy_information="&amp;lt;table style='font-family: arial, sans-serif;&amp;nbsp; border-collapse: collapse;&amp;nbsp; width: 100%;'&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th style ='border: 1px solid #dddddd;&amp;nbsp; text-align: left;&amp;nbsp; padding: 8px;'&amp;gt;Row.&amp;lt;/th&amp;gt;&amp;lt;th style ='border: 1px solid #dddddd;&amp;nbsp; text-align: left;&amp;nbsp; padding: 8px;'&amp;gt;State&amp;lt;/th&amp;gt;&amp;lt;th style ='border: 1px solid #dddddd;&amp;nbsp; text-align: left;&amp;nbsp; padding: 8px;'&amp;gt;Error&amp;lt;/th&amp;gt;&amp;lt;th style ='border: 1px solid #dddddd;&amp;nbsp; text-align: left;&amp;nbsp; padding: 8px;'&amp;gt;Comment&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; transformhistroy_information&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;+="&amp;lt;tr&amp;gt;&amp;lt;td style ='border: 1px solid #dddddd;&amp;nbsp; text-align: left;&amp;nbsp; padding: 8px;'&amp;gt;"+row+"&amp;lt;/td&amp;gt;&amp;lt;td style ='border: 1px solid #dddddd;&amp;nbsp; text-align: left;&amp;nbsp; padding: 8px;'&amp;gt;"+state.getDisplayValue()+"&amp;lt;/td&amp;gt;&amp;lt;td style ='border: 1px solid #dddddd;&amp;nbsp; text-align: left;&amp;nbsp; padding: 8px;'&amp;gt;"+error.getDisplayValue()+"&amp;lt;/td&amp;gt;&amp;lt;td style ='border: 1px solid #dddddd;&amp;nbsp; text-align: left;&amp;nbsp; padding: 8px;'&amp;gt;"+comments+"&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 13:21:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835415#M492341</guid>
      <dc:creator>Chaitanya Redd1</dc:creator>
      <dc:date>2020-07-16T13:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger notification through event when data loaded and got error through Transform map</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835416#M492342</link>
      <description>&lt;P&gt;Hi Chaitanya,&lt;/P&gt;
&lt;P&gt;in that case you need to query the staging table with the import set number and print the information&lt;/P&gt;
&lt;P&gt;Sample below: just enhance it&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;(function runMailScript(current, template, email, email_action, event) {
   
template.print("&amp;lt;table width=70% border=1&amp;gt;&amp;lt;tr bgcolor=#e2e0de&amp;gt;&amp;lt;td&amp;gt;Row&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;State&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Error&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Comment&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;");

var gr = new GlideRecord('staging table');
gr.addQuery('set', current.set);
gr.query();
while(gr.next()){

template.print("&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;gr.sys_import_row&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;gr.sys_import_state&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;gr.sys_row_error&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;gr.sys_import_state_comment&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;")

}

template.print('&amp;lt;/table&amp;gt;');
   
})(current, template, email, email_action, event);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 15:33:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835416#M492342</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-07-16T15:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger notification through event when data loaded and got error through Transform map</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835417#M492343</link>
      <description>&lt;P&gt;Sorry for late update on this. Thanks for help it worked.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 15:15:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835417#M492343</guid>
      <dc:creator>Chaitanya Redd1</dc:creator>
      <dc:date>2020-07-17T15:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger notification through event when data loaded and got error through Transform map</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835418#M492344</link>
      <description>&lt;P&gt;You are welcome&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 15:29:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-through-event-when-data-loaded-and/m-p/1835418#M492344</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-07-17T15:29:32Z</dc:date>
    </item>
  </channel>
</rss>

