<?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 Vivek Verma on Medium]]></title>
        <description><![CDATA[Stories by Vivek Verma on Medium]]></description>
        <link>https://medium.com/@vik180292?source=rss-24f114272fea------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Bs-fTCxQ5EIwo7fFRy7dig.jpeg</url>
            <title>Stories by Vivek Verma on Medium</title>
            <link>https://medium.com/@vik180292?source=rss-24f114272fea------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 17:11:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vik180292/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[Say Cheese, ServiceNow! Facial Recognition Meets Authentication through OpenCV’s Search API]]></title>
            <link>https://medium.com/@vik180292/say-cheese-servicenow-facial-recognition-meets-authentication-through-opencvs-search-api-76e2b10d18a1?source=rss-24f114272fea------2</link>
            <guid isPermaLink="false">https://medium.com/p/76e2b10d18a1</guid>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[servicenow-integration]]></category>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Wed, 17 May 2023 13:06:52 GMT</pubDate>
            <atom:updated>2023-05-17T13:06:52.870Z</atom:updated>
            <content:encoded><![CDATA[<p>“<em>Develop a passion for learning. If you do, you will never cease to grow.”</em> — <strong>Anthony J. D’Angelo</strong></p><p>As a ServiceNow Architect, I’m no stranger to charting new technological territories. This time, I packed my bags, grabbed my virtual passport, and embarked on an exciting adventure to bring facial recognition into ServiceNow’s login process. By harnessing the power of OpenCV’s Search API, we’re setting the stage for a login experience.</p><p>So buckle up, tech enthusiasts! We’re about to dive into the nitty-gritty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CBHjBmIodLcCaBmL0p9wyA.png" /></figure><h4>Let’s delve a bit into the technical aspects now,</h4><p>First off, visualize cloning the ServiceNow OOB Login Widget. Picture it? Good. Now, let’s add a dash of the Webcam component to the Widget. The fun begins when we start splashing around with some fancy HTML and CSS.</p><p>With a click of a button, we call our Client-side script into action. This then captures the image data and sends it to Flow to call OpenCV’s Search API. In response, ServiceNow receives a prediction score and other user-related info.</p><p>Once we’ve received the response, our Widget Client-side Script springs into action, executing the function loginWithFace(). It’s like our OOB login function’s twin but with an extra trick up its sleeve: it establishes a session based on the user’s email.</p><p><strong>(Client and Server-side script code snippet here)</strong></p><p>client-side script:</p><pre>// This function captures an image from the webcam and sends it to the server.<br>// The server then uses the image data to log the user in.<br>c.captureImage = function() {<br>  // Draw the webcam image onto the canvas.<br>  // The image is drawn at position (0,0) and with dimensions 640x480.<br>  c.context.drawImage(c.video, 0, 0, 640, 480);<br><br>  // Get the image data from the canvas.<br>  // The toDataURL method is used to convert the canvas image into a base64 encoded png format.<br>  c.imageData = c.canvas.toDataURL(&#39;image/png&#39;);<br><br>  // Send the image data to the server.<br>  // The image data is sent as an object with a property named &#39;imageData&#39;.<br>  c.server.get({ imageData: c.imageData }).then(function(response) {<br>    // Log the user in with the email address from the server response.<br>    // The server is expected to return an object with a property &#39;data&#39;,<br>    // which in turn should have a property &#39;email&#39;.<br>    // This email is then used to log the user in.<br>    loginWithFace(response.data.email);<br>  });<br>};</pre><p>Server-side script:</p><pre>try {<br>    // Extract the &#39;imageData&#39; property from the &#39;input&#39; object.<br>    var str = input.imageData;<br><br>    // Get the Base64 encoded image data by removing the prefix up to the comma.<br>    // This assumes that the image data is prefixed with data specifying the format, like &#39;data:image/png;base64,&#39;.<br>    var base64Data = str.substring(str.indexOf(&#39;,&#39;) + 1);<br><br>    // Prepare the inputs for the &#39;opencv_facerecognition_workflow&#39; subflow.<br>    // This includes the base64 encoded image data.<br>    var inputs = {};<br>    inputs[&#39;imagedata64encoded&#39;] = base64Data; // String <br><br>    // Execute the subflow &#39;opencv_facerecognition_workflow&#39; synchronously, i.e. wait until it finishes before proceeding.<br>    // The inputs prepared above are provided to the subflow.<br>    var result = sn_fd.FlowAPI.getRunner().subflow(&#39;global.opencv_facerecognition_workflow&#39;).inForeground().withInputs(inputs).run();<br>    <br>    // Retrieve the outputs from the execution of the subflow.<br>    // This can only be done when executing synchronously.<br>    var outputs = result.getOutputs();<br><br>    // Get the &#39;email&#39; and &#39;prediction_score&#39; from the subflow&#39;s outputs.<br>    email = outputs[&#39;email&#39;]; // String<br>    prediction_score = outputs[&#39;prediction_score&#39;]; // String<br><br>} catch (ex) {<br>    // Catch any exceptions that occur during the execution of the above code.<br>    // Log the error message to the system log.<br>    var message = ex.getMessage();<br>    gs.error(message);<br>}</pre><p>“But wait,” you may wonder, “what about the OOB Login script?” Don’t fret! We’ve overridden it to add a custom method for the User object, ditching the old-school username/password combo. And voilà! We’ve just upgraded our login system.</p><p>ta-da!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R88XjPEM5pwiIyu6aUfvbw.gif" /></figure><p>But is this the end? Not even close!</p><p>I’m still navigating the labyrinth of OpenCV APIs and ServiceNow’s GlideQuery API, all in a bid to speed up this integration and prevent data from being stored on the OpenCV server. So, stay tuned, fellow explorers, the adventure continues!</p><p>Links:</p><blockquote>LinkedIn: <a href="https://www.linkedin.com/in/vivekvermasn/">Vivek Verma | LinkedIn</a></blockquote><blockquote>OpenCV API : <a href="https://eu.opencv.fr/docs#/Search/search_from_one_or_more_images_of_same_person_search_post">OpenCV Face Recognition — Swagger UI</a></blockquote><blockquote>ServiceNow Developer: <a href="https://developer.servicenow.com/dev.do#!/">ServiceNow Developers</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76e2b10d18a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ServiceNow Social Login and Payment gateway Widgets]]></title>
            <link>https://medium.com/@vik180292/servicenow-social-login-and-payment-gateway-widgets-79522932bb03?source=rss-24f114272fea------2</link>
            <guid isPermaLink="false">https://medium.com/p/79522932bb03</guid>
            <category><![CDATA[facebook-login]]></category>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[google-login]]></category>
            <category><![CDATA[paypal]]></category>
            <category><![CDATA[google-pay]]></category>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Sat, 05 Sep 2020 18:43:57 GMT</pubDate>
            <atom:updated>2020-09-05T19:11:24.290Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5NsJOZdvVfd-owFQkECHRQ.jpeg" /></figure><blockquote>Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. — Martin</blockquote><h4>We are going to understand two topics here,</h4><blockquote>1. How to set up social media authentication as login widget in the servicenow portal.</blockquote><blockquote>2. Add Payment Gateway Smart Buttons on our Service Portal page.</blockquote><p><strong><em>Setup Social Identity provider as login Widget</em></strong></p><p>Prerequisites —</p><ul><li>Register one Application in the Facebook developer account and keep the Application ID in the clipboard.</li><li>Create one project (If you don’t have any) in Google console and configure OAuth credential for that. Keep the client ID on the clipboard.</li></ul><p>I have attempted a few Youtube sessions about the Paris release. That Servicenow is enhanced its feature with OpenID SSO. But OpenID is restricted to true OIDC providers such as Google and Microsoft. But Facebook is not on that list. That point of contention.</p><p>So I directly googled the “How to add <em>login with the Facebook</em> button on my web application.” It’s a pretty easy peasy task as per google search results. But only for modern web development.</p><p>For Our Service Portal, I have to load the JS SDK File of Facebook and Google. We can load JS SDK in the HTML part of the widget, or Widget dependency could be a handy alternative. And Transpile the ES6 code to ES5.</p><ul><li><a href="https://developers.facebook.com/docs/facebook-login/web">Web - Facebook Login - Documentation - Facebook for Developers</a></li><li><a href="https://developers.google.com/identity/sign-in/web/sign-in">Integrating Google Sign-In into your web app | Authentication | Google for Developers</a></li></ul><p>Hey Hey, listen, Once you get authorized with Facebook and Google. You will receive an email, first name, and last name as the response. We will use this email as the user ID to set up User-Session in servicenow. For that, we need to override the OOTB Login installation exit to our custom Login installation exit. Just authenticate the User object with email.</p><p>Facebook and Google Sign-in Feature</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmGwXOOGRlr0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmGwXOOGRlr0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmGwXOOGRlr0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/37d8b8857da178bdf7d1f013da582bee/href">https://medium.com/media/37d8b8857da178bdf7d1f013da582bee/href</a></iframe><p><strong><em>Add the Payment Gateway Smart button on the portal.</em></strong></p><h4>Paypal Smart Button</h4><p>Steps —</p><ul><li>Register a Rest App in the Paypal developer portal and create a few Sandbox accounts for testing.</li><li>Add the PayPal JavaScript SDK to your Portal page as Widget Dependency or Using Script Tag.</li><li>Once the Paypal Smart Button Dependency is loaded on your page, then validate the Paypal object in the script.</li><li>The final step would be to Render the Smart Button on your page. (Like this <strong><em>paypal.Buttons().render(‘#paypal-button-container’) </em></strong>). And put this button container whenever you want to deploy on your portal page.</li></ul><p>Paypal provides customization; here, I had set up the one-time transaction and immediately captured the funds into my account.</p><p><a href="https://developer.paypal.com/docs/checkout/integrate/#">Add the Buttons</a></p><h4>Google Pay Smart Button</h4><blockquote>You must have one chargeable bank account linked with your Google Account.</blockquote><p>Steps —</p><ul><li>Load Google Pay API on your Portal Page. <strong>pay.js</strong></li><li>Determine the readiness of API. <strong>isReadyToPay()</strong></li><li>Add the Google Pay Button. <strong>createButton()</strong></li><li>Create Payment Data request object. <strong>loadPaymentData()</strong></li></ul><p><a href="https://developers.google.com/pay/api/web/guides/tutorial">Tutorial | Google Pay API | Google Developers</a></p><blockquote><strong><em>Note- Google Pay API provides Javascript Code in ES6, You have to Transpile the ES6 code to ES5. Because ServiceNow hasn’t ascended to ES6 yet.</em></strong></blockquote><blockquote><strong><em>I have used the Babel Node Package for Transpilation.</em></strong></blockquote><p>Yay! Demo Time —</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F19y32LwHntE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D19y32LwHntE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F19y32LwHntE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cfac854f31568dafb828213558457716/href">https://medium.com/media/cfac854f31568dafb828213558457716/href</a></iframe><p>Maybe I sound heretic here, but as per my experience with the Service Portal environment. ServiceNow has to break up with Angular JS and move to Modern web development Technolgy (Such as React).</p><p>In recent version releases, ServiceNow introduced <strong>Now Experience</strong>. But <strong>Now Experience</strong> is limited for Agent Workspace. I think it could be the replacement of UI16. But What is the future of ServiceNow as a CSM Platform.</p><p>And We have already seen a couple of React Based Application successfully deployed over the ServiceNow Platform.</p><p>Here is excellent Blog about this,</p><p><a href="https://medium.com/@pishchulin/react-in-servicenow-applications-advanced-3e1966fbb817">React in ServiceNow applications (advanced)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79522932bb03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ServiceNow Integration with Google Calendar + Google Meet(OAuth 2.0)]]></title>
            <link>https://medium.com/@vik180292/servicenow-integration-with-google-calendar-google-meet-oauth-2-0-d78bc3430d4a?source=rss-24f114272fea------2</link>
            <guid isPermaLink="false">https://medium.com/p/d78bc3430d4a</guid>
            <category><![CDATA[servicenow-training]]></category>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[servicenow-integration]]></category>
            <category><![CDATA[google-meet]]></category>
            <category><![CDATA[google-api]]></category>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Tue, 26 May 2020 14:15:17 GMT</pubDate>
            <atom:updated>2020-05-26T14:15:17.933Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_lmsEtrEN9SFMHR9UAJpqw.jpeg" /></figure><p><em>“It is common sense to take a method and try it. If it fails, admit it frankly and try another. But above all, try something.”</em><br> — <a href="https://source.oglethorpe.edu/2012/05/22/remembering-fdrs-commencement-speech-at-oglethorpe/">Franklin D. Roosevelt</a></p><blockquote><strong>The integration will enable you to create a Google Meet<br>meeting link from an incident using the Custom UI Page via UI Action.</strong></blockquote><h4>We are going to understand three topics here,</h4><blockquote><strong>1.How to extend the time limit of token in Google OAuth 2.0</strong></blockquote><blockquote><strong>2.Making a UI Page without using the framework page template</strong></blockquote><blockquote><strong>3.Leverage the Google Calendar API to generate the Google Meet Invite link.</strong></blockquote><p><strong><em>The First Step of this integration is to configure OAuth 2.0</em></strong></p><ul><li>Setup the OAuth 2.0 Provider on Google console.</li></ul><p><a href="https://docs.servicenow.com/bundle/kingston-application-development/page/integrate/outbound-rest/task/t_OAuthDemoConfigureGoogle.html">OAuth 2.0 tutorial - configure the Google service as an OAuth provider</a></p><ul><li>Create an OAuth provider and Profile at ServiceNow side using Client information and Google API URLs.</li></ul><p><a href="https://docs.servicenow.com/bundle/kingston-application-development/page/integrate/outbound-rest/task/t_OAuthDemoCreateProvider.html">OAuth 2.0 tutorial - create an OAuth provider and profile</a></p><ul><li>List of OAuth 2.0 Scopes for Google APIs.</li></ul><p><a href="https://developers.google.com/identity/protocols/oauth2/scopes">OAuth 2.0 Scopes for Google APIs | Google for Developers</a></p><ul><li>Now Create Rest Message.</li></ul><p><a href="https://docs.servicenow.com/bundle/kingston-application-development/page/integrate/outbound-rest/task/t_OAuthDemoCreateRESTMessage.html">OAuth 2.0 tutorial - create a REST message</a></p><p>After following all these three steps. You can generate a token. One thing is always ruffled your feather is Token time limit. It’s hardly valid for an hour. Because your OAuth Credentials Type is Access Token, but you need to change it to Refresh Token Type.</p><p>Make a copy <strong>OAuthUtil</strong> Script Include and add the parameter in the function <strong>preprocessAuthCode</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4vVJC1bGAbDfx1Wq-WgqTw.png" /></figure><p>Set this script include in Your Application Registry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bXWSD7lEgQDrybd9XDprNA.png" /></figure><p>Now, Check the OAuth Token in Manage token module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eXLN8Vpeb_TwjSn_fWBW_w.png" /></figure><ul><li><strong>Access Token:</strong> valid for one hour</li><li><strong>Refresh Token:</strong> valid for 100 days. This is the default value set by Servicenow. Google refresh tokens don’t have an expiration date. “Expires” date can be modified manually to set a time far in the future.</li></ul><p>If the Refresh token is not showing Because You can only get the refresh token the first time you authorize the application to interact with Google.</p><p>Follow this link and remove the access. Repeat the process.</p><p><a href="https://myaccount.google.com/permissions">Sign in - Google Accounts</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yKwQ0LLVhMsvewIaSKfo_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f11Vi6o13yr1AJhuesNvaw.png" /><figcaption>OAuth is valid up to 100days now. Have good testing time.</figcaption></figure><p><strong><em>The Second Step of this integration is to Create UI Action, which is used to render our custom UI Page.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SNqA8GPc3X3TUQR-MD-XVQ.png" /></figure><blockquote><strong>Create custom UI page.</strong></blockquote><p>Creating the custom UI page is totally a control freak guy job.</p><p>Step 1. Create a Form using HTML and CSS.</p><p>Step 2. Checked the “Direct” flag.</p><p>Step 3. Finally, on line 1 of the HTML field, add the following code. This tells the browser which Doctype to use when rendering the document. This example tells the browser to treat this as an HTML document.</p><p><strong>$[&amp;lt;!DOCTYPE HTML&amp;gt;]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tq57dTGM3ZMyuCdH87D4FA.png" /></figure><p><strong><em>The Third Step of this integration is to sending JSON Object to Google API endpoint.</em></strong></p><p>Step 1: Construct JSON Object in Processing script of UI Page. Next, send this to script include <strong>meetSNUtility (</strong>the one I have created to send data to Rest Message<strong>).</strong></p><p>Script Include —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*78fdre0NQy-kZQpX9Qvacg.png" /><figcaption>Script Include — meetSNUtility</figcaption></figure><p>Rest Message/Method —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bbr8tm14FHYbklF0SRpLiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R_yAiLqN3zASAupshzW4FQ.png" /><figcaption>Rest Message — Google Calendar API</figcaption></figure><blockquote>Let’s not make this like watching grass grow. Testing Time,</blockquote><p>Open Incident ticket and Click on UI Action (Google Meet). Fill the meeting Agenda, Recipient Emails, and Duration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ckkpEanqH4P1BziNYK6yoQ.png" /></figure><p>Click on submit,</p><figure><img alt="Generated Google Meet meeting link" src="https://cdn-images-1.medium.com/max/942/1*fVpsSvyvqW0UXCvBbqY-1A.png" /><figcaption>Google Meet meeting link</figcaption></figure><p>Now you can quickly join the meeting by clicking on this URL.</p><p>Lets Open Google Calendar check the Scheduled Meeting. Damn, it&#39;s working.</p><p>Now You can join the meeting from your calendar by clicking on <strong>“Join with Google Meet”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ceFPj6FlR9HX7nlOXJABTg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d78bc3430d4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Undocumented Field Type in ServiceNow]]></title>
            <link>https://medium.com/@vik180292/undocumented-field-type-in-servicenow-3697f7998a37?source=rss-24f114272fea------2</link>
            <guid isPermaLink="false">https://medium.com/p/3697f7998a37</guid>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[now]]></category>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Sun, 10 May 2020 11:04:35 GMT</pubDate>
            <atom:updated>2020-05-10T11:04:35.701Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*_XcIsqwwTH8v3dK4Aiiphw.gif" /></figure><p>In this article, we will configure the hidden field — Days of week.</p><p>Let’s “.list” the dictionary table,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qfizuZG52J-4yFLboGUQlg.png" /></figure><p>Keep the freewheeling spirit in <em>Now platform</em>.</p><blockquote>“Days of week” — who are you?</blockquote><p>But this field type wouldn&#39;t appear in field creation.</p><p>Umm, Lets “.list” the field classes table(sys_glide_object).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c6FLZc6ngE7o8sgnp9-m2g.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FRkKMFRHh71RvhCYUx6%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Flatenightseth-lol-seth-meyers-lnsm-RkKMFRHh71RvhCYUx6&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FRkKMFRHh71RvhCYUx6%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/a00ec6a08198ec7105e979af7d288cc7/href">https://medium.com/media/a00ec6a08198ec7105e979af7d288cc7/href</a></iframe><p>Go back to the dictionary table list and show matching the “Days of week” field type. Then click <strong>New. </strong>Because I don&#39;t want to mess with ACL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rBheVTwGn51Ru7DnqA02fA.png" /></figure><p>Chose your table and name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BEwaBIaRM1nhQ0F384Ekqw.png" /></figure><p><strong>Ta-dah!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T23_5XMLRx1oJiMWtrJkPA.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3697f7998a37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Servicenow And Linkedin Integration(OAuth)]]></title>
            <link>https://medium.com/@vik180292/servicenow-and-linkedin-integration-oauth-d1602f31be35?source=rss-24f114272fea------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1602f31be35</guid>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[linkedin]]></category>
            <dc:creator><![CDATA[Vivek Verma]]></dc:creator>
            <pubDate>Thu, 02 Apr 2020 09:35:46 GMT</pubDate>
            <atom:updated>2020-04-03T08:02:53.228Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fr23-V6kHFbyyz9pAnc5Ww.jpeg" /></figure><p><strong>Create an Application in LinkedIn developer account: </strong>We need to create an Application in LinkedIn developer account to get the following information — <em>Application credentials, and Permissions (</em><a href="https://www.linkedin.com/developers/"><em>link</em></a>)</p><blockquote>( ServiceNow as a consumer and Linkedin as Provider).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oeqbvbrGpqfDtlkbNhhsxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8wpQP7lzNJgy4hPE2cpA7g.png" /></figure><p><strong>Configure OAuth Profile in ServiceNow:</strong></p><p>Steps —</p><blockquote>Navigate to SystemOAuth &gt; Application Registry and click on <strong><em>NEW </em></strong>select <strong><em>Connect to a third part OAuth provider</em></strong>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*escIYkRItuhlmpkqojHiAA.png" /></figure><blockquote>Complete the form,</blockquote><blockquote><em>The client id and Client secret</em> — You need to copy and paste it from the LinkedIn Developer Application.</blockquote><blockquote><em>Default Grant Type</em> — Authorization Code</blockquote><blockquote><em>Authorization URL</em> — <a href="https://www.linkedin.com/oauth/v2/authorization">https://www.linkedin.com/oauth/v2/authorization</a></blockquote><blockquote><em>Token URL </em>— <a href="https://www.linkedin.com/oauth/v2/accessToken">https://www.linkedin.com/oauth/v2/accessToken</a></blockquote><blockquote>( <a href="https://docs.microsoft.com/en-us/linkedin/consumer/">LinkedIn API Docs</a>)</blockquote><blockquote>To get the Authorization permissions, we need to mention all the three permissions from the Linkedin Application to the OAuth Entity Scopes.</blockquote><blockquote>And same for the Automatically created default OAuth Entity Profile.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_9X80S2cop9MAMYZvgkC7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XU9lzugrjhw7VJVHHzhn-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WQ3XQgGAvCVbRyMC7ZhzYw.png" /></figure><p><strong>Create Rest Messages in ServiceNow:</strong></p><p>To get the token and Profile detail, We need to create a get rest message.</p><p>steps —</p><blockquote>Open System Webservices&gt; Outbound&gt; Rest Message</blockquote><blockquote>Click <strong>New,</strong></blockquote><blockquote>Complete the form,</blockquote><blockquote><em>Endpoint URL:</em> GET <a href="https://api.linkedin.com/v2/me">https://api.linkedin.com/v2/me</a></blockquote><blockquote><em>Authentication type : </em>OAuth2.0</blockquote><blockquote><em>OAuth profile:</em> LinkedSN default_profile (already created in previous steps.)</blockquote><blockquote>After submitting the form a default Get message will be created.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PCcaFZPcN0B3d5L1aOEW3w.png" /></figure><p>Now Click on <strong>Get OAuth Token.</strong></p><p>A new window will open, Where you need to provide Your Linked Account Credentials.</p><p>On the successful attempt, The Access token will be generated, and the Validity of token will show as Info message on the form.</p><p>Now, open the default Get Method, Click on <strong>Test. </strong>A new window pop-up showing the Test Run results; in the response, we can find the integrated profile details, i.e., First name, Last name, Language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hd0ig0_Wayf-_XCRKZVaYg.png" /></figure><p><strong>Bonus </strong>— To create a post on LinkedIn,</p><p>Create Post HTTP method,</p><p>Complete the form,</p><blockquote>End Point: <a href="https://api.linkedin.com/v2/ugcPosts">https://api.linkedin.com/v2/ugcPosts</a></blockquote><blockquote>Content: {</blockquote><blockquote>“author”: “urn:li:person:&lt;&lt;Put the id which you get from the previous get method&gt;&gt;”,</blockquote><blockquote>“lifecycleState”: “PUBLISHED”,</blockquote><blockquote>“specificContent”: {</blockquote><blockquote>“com.linkedin.ugc.ShareContent”: {</blockquote><blockquote>“shareCommentary”: {</blockquote><blockquote>“text”: “This is Test Post!”</blockquote><blockquote>},</blockquote><blockquote>“shareMediaCategory”: “NONE”</blockquote><blockquote>}</blockquote><blockquote>},</blockquote><blockquote>“visibility”: {</blockquote><blockquote>“com.linkedin.ugc.MemberNetworkVisibility”: “PUBLIC”</blockquote><blockquote>}</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PDXnsO2sUyPzoooFjkpdbw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1602f31be35" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>