<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jonathan Jacob on Medium]]></title>
        <description><![CDATA[Stories by Jonathan Jacob on Medium]]></description>
        <link>https://medium.com/@jonnyfive?source=rss-f2b3f9aae9eb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cyrmmwdHnUYrGYr9X57qZA.png</url>
            <title>Stories by Jonathan Jacob on Medium</title>
            <link>https://medium.com/@jonnyfive?source=rss-f2b3f9aae9eb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:01:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jonnyfive/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ServiceNow and Siri Shortcuts app]]></title>
            <link>https://medium.com/@jonnyfive/servicenow-and-siri-shortcuts-app-4f8a843eb01c?source=rss-f2b3f9aae9eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f8a843eb01c</guid>
            <category><![CDATA[siri]]></category>
            <category><![CDATA[shortcuts]]></category>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Jonathan Jacob]]></dc:creator>
            <pubDate>Fri, 21 Sep 2018 23:00:15 GMT</pubDate>
            <atom:updated>2018-09-21T23:04:45.096Z</atom:updated>
            <content:encoded><![CDATA[<p>As a <strong>huge</strong> Apple fan, I eagerly awaited the launch of iOS 12. With iOS 12, Apple has launched the Siri Shortcuts app which allows anyone to create a “<em>Shortcut</em>”: a series of steps that can interact with third party applications, the iOS device, and Siri.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*JWRr1cGeNXvqEJdsbQVE4w.png" /></figure><p>As soon as I got my hands on the app, I saw quite a number of similarities between Shortcuts and ServiceNow’s Flow Designer. Steps within Shortcuts can be sequenced and they have inputs and outputs (“Magic Variables”) similar to “Data Pills” within Flow Designer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*-xWiF_bWrnqnqoQyr4yc_w.png" /></figure><p>The Shortcuts app has a number of easy to use “Actions” which immediately reminded me of Flow Designer’s “Spokes”. In the Shortcuts app, many “developer” or “advanced” user Actions exist. After seeing some advanced actions such as “Get Contents of URL” and “Get Dictionary from Input” I wondered, can I link a Shortcut to ServiceNow?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*s7uLZPYXr9rtaLeOcotlqQ.png" /></figure><p>Within a short amount of time I was able to create a pretty useful Shortcut. The Shortcut creates a ServiceNow Incident using Siri dictation. It then reads back the Incident number it created via the table REST API. This is obviously a quick proof of concept, but it’s clear that the possibilities are endless. With no code, you could grab native device data such as Location or System IP address, pass that data to a REST API, and parse the results back to spoken text.</p><p>Some areas for improvement include using an API key rather than a username/password variable or even using the new Chat framework that ServiceNow has released with London.</p><p>For anyone interested, <a href="https://www.icloud.com/shortcuts/5c0d47f60fde4cc196d6f04028a3a277">here</a> is the Shortcut. All you need to do is download the iOS application “Shortcuts” and install this. Once installed, add in your instance, username, and password.</p><p>I am really excited to see what clever ideas the community comes up with here. Give it a try!</p><p><a href="https://support.apple.com/guide/shortcuts/welcome/ios">Shortcuts User Guide</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f8a843eb01c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scoped APIs are not Global enough]]></title>
            <link>https://medium.com/@jonnyfive/scoped-apis-are-not-global-enough-aa21ff161b0c?source=rss-f2b3f9aae9eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa21ff161b0c</guid>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[paas]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Jonathan Jacob]]></dc:creator>
            <pubDate>Thu, 14 Jun 2018 13:15:34 GMT</pubDate>
            <atom:updated>2018-06-14T13:36:18.188Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6fuLXjZwAVS8uSy5jwGYBg.png" /></figure><p><a href="https://community.servicenow.com/community?id=community_blog&amp;sys_id=addca665dbd0dbc01dcaf3231f96192e">Scoped apps</a> were first introduced in the Fuji release. This was a really exciting time for ServiceNow partners, developers, and the community. For partners, an app store within the ServiceNow ecosystem was a new business model. For developers and admins, there was finally a way to get away from update sets and there were lots of new features to play with. For just about everyone, there was a new way to encapsulate or “sandbox” business logic and data. This idea was and still is welcomed by me; I enjoy creating scoped apps and encourage my customers, and colleagues to embrace them.</p><p>For those that don’t remember the early days of scoped apps, we were all a bit shocked and surprised at how limited the <a href="https://community.servicenow.com/community?id=community_blog&amp;sys_id=abfde62ddbd0dbc01dcaf3231f961922">APIs</a> were. As time progressed, ServiceNow began exposing more and more “Scoped APIs” and today, I would say most if not all of the necessary APIs are exposed in the “Scoped” world. To get to that point, it took a great deal of feedback from the ServiceNow community to explain to the development team <em>why</em> some of these APIs are crucial to build amazing applications on the ServiceNow platform.</p><p>More recently, I see that we are faced with the opposite issue. Some scoped APIs do not function within the global scope. The frustrating piece is, it seems to be at random which APIs work and which don’t. If you regularly explore the developer site looking over the API documentation (as I do) you may have seen this disclaimer:</p><p>“<strong>Please note: </strong>The APIs below are intended for scoped applications and may behave differently in the global scope.”</p><p>Within the platform, specifically in the Global scope, I should be able to use APIs that are available to a scoped app or a similar equivalent API. I know that scoped apps are the future and that we should all be adopting them. With a few caveats I agree with this but that is not for this post to discuss. It seems as more Scoped API use cases have emerged, ServiceNow has built some amazing APIs for developers to use, however some of them were not ported into the global scope.</p><p>Consider the following example:</p><pre>var att = new GlideSysAttachment().getContentStream(attachment);<br>var xmlDoc = XMLDocument2(att);</pre><pre>gs.info(xmlDoc.toString());</pre><p>This code executes properly is a scoped app, <em>however in the global scope, it does not</em>. It produces the following error:</p><pre>Evaluator: org.mozilla.javascript.EcmaError: Method &quot;XMLDocument2&quot; called on incompatible object.<br>   Caused by error in script at line 2</pre><p>This leads me to believe the correct method signatures were not setup in the global scope. Because the XMLDocument2 API, works in other contexts:</p><pre>//Example from developer.servicenow.com<br>var xmlString = &quot;&lt;test&gt;&quot; +<br>                &quot;  &lt;one&gt;&quot; +<br>                &quot;    &lt;two att=\&quot;xxx\&quot;&gt;abcd1234&lt;/two&gt;&quot; +<br>                &quot;    &lt;three boo=\&quot;yah\&quot; att=\&quot;yyy\&quot;&gt;1234abcd&lt;/three&gt;&quot; +<br>                &quot;    &lt;two&gt;another&lt;/two&gt;&quot; +<br>                &quot;  &lt;/one&gt;&quot; +<br>                &quot;  &lt;number&gt;1234&lt;/number&gt;&quot; +<br>                &quot;&lt;/test&gt;&quot;;<br>var xmlDoc = new XMLDocument2();<br>xmlDoc.parseXML(xmlString);<br>gs.info(xmlDoc.toString());</pre><p>This is just one example, I am sure other similar examples exist. My hope here is that while developing Scoped APIs, ServiceNow still considers that some use cases need to exist in the Global scope. Thus, Global APIs should have all of the APIs that exist in the Scoped world or at least a similar equivalent.</p><p>I share this feedback in hopes to better ServiceNow as a platform for all use cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa21ff161b0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>