<?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 create a new discovery schedule via script? in ITOM forum</title>
    <link>https://www.servicenow.com/community/itom-forum/how-to-create-a-new-discovery-schedule-via-script/m-p/887978#M76</link>
    <description>&lt;P&gt;I am looking to automate new discovery schedule creation (new to service-now discovery). If i have over 100 new schedules (groups by region, division etc) that needs to be created, what would be the best approach to create discovery schedules?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
    <pubDate>Tue, 12 Dec 2017 21:59:32 GMT</pubDate>
    <dc:creator>runfast</dc:creator>
    <dc:date>2017-12-12T21:59:32Z</dc:date>
    <item>
      <title>how to create a new discovery schedule via script?</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-create-a-new-discovery-schedule-via-script/m-p/887978#M76</link>
      <description>&lt;P&gt;I am looking to automate new discovery schedule creation (new to service-now discovery). If i have over 100 new schedules (groups by region, division etc) that needs to be created, what would be the best approach to create discovery schedules?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 21:59:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-create-a-new-discovery-schedule-via-script/m-p/887978#M76</guid>
      <dc:creator>runfast</dc:creator>
      <dc:date>2017-12-12T21:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a new discovery schedule via script?</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-create-a-new-discovery-schedule-via-script/m-p/887979#M77</link>
      <description>&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;You could create a scheduled discovery job then trigger it with a script include, see here for details on StartDiscovery method.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A title="" _jive_internal="true" href="http://wiki.servicenow.com/index.php?title=Discovery_(Script_Include)#gsc.tab=0" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;" target="_blank"&gt;Discovery (Script Include) - ServiceNow Wiki&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;You could then call it from a client side script using GlideAjax (&lt;A title="" _jive_internal="true" href="http://wiki.servicenow.com/index.php?title=GlideAjax#gsc.tab=0" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;" target="_blank"&gt;GlideAjax - ServiceNow Wiki&lt;/A&gt; ) or if you're in Geneva you could create a Scripted REST API endpoint (&lt;A title="" _jive_internal="true" href="https://docs.servicenow.com/integrate/custom_web_services/task/t_CreateAScriptedRESTAPIResource.html" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;" target="_blank"&gt;Create a scripted REST API resource)&lt;/A&gt; for your external program to call, the nice part about the latter is it's simple to create and provides a nice easy way to pass output back to your external program.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;vishal&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Dec 2017 03:47:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-create-a-new-discovery-schedule-via-script/m-p/887979#M77</guid>
      <dc:creator>Vishal Khandve</dc:creator>
      <dc:date>2017-12-13T03:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a new discovery schedule via script?</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-create-a-new-discovery-schedule-via-script/m-p/887980#M78</link>
      <description>&lt;P&gt;Discovery Schedules have the back end table as &lt;STRONG&gt;discovery_schedule&lt;/STRONG&gt; in Servicenow.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We can always create a record in a table using various Server Side scripting framework.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;But In your case, it depends on the requirement. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If getting an &lt;STRONG&gt;Excel&lt;/STRONG&gt; sheet from your client to crate a DISCOVERY SCHEDULE, You can try to import it and &lt;STRONG&gt;use transform maps to directly link it to the target table (discovery_schedule) and the related tables.&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You can control the transforms using the transformation script and field mapping. &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;PS : This approach will save brainstorming on server side scripting. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="218_428.171875_16_16" src="https://www.servicenow.com/8.0.4.21bdc7e/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Prabhash&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Dec 2017 07:12:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-create-a-new-discovery-schedule-via-script/m-p/887980#M78</guid>
      <dc:creator>prabhash_snow</dc:creator>
      <dc:date>2017-12-13T07:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a new discovery schedule via script?</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-create-a-new-discovery-schedule-via-script/m-p/887981#M79</link>
      <description>&lt;P&gt;Hi Prabhash - Thanks for providing direction. I will explore the import spreadsheet data into the table. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Dec 2017 17:00:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-create-a-new-discovery-schedule-via-script/m-p/887981#M79</guid>
      <dc:creator>runfast</dc:creator>
      <dc:date>2017-12-13T17:00:23Z</dc:date>
    </item>
  </channel>
</rss>

