<?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 Samvictor on Medium]]></title>
        <description><![CDATA[Stories by Samvictor on Medium]]></description>
        <link>https://medium.com/@samvictor1797?source=rss-be8427d3593d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*GQfuqWUuFmZ-yEBQ</url>
            <title>Stories by Samvictor on Medium</title>
            <link>https://medium.com/@samvictor1797?source=rss-be8427d3593d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:22:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samvictor1797/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[Automation Using RPA in ServiceNow]]></title>
            <link>https://medium.com/@samvictor1797/automation-using-rpa-in-servicenow-9dd7efb53979?source=rss-be8427d3593d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dd7efb53979</guid>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[rpa-tools]]></category>
            <dc:creator><![CDATA[Samvictor]]></dc:creator>
            <pubDate>Wed, 26 Jul 2023 18:04:27 GMT</pubDate>
            <atom:updated>2023-07-26T18:47:24.532Z</atom:updated>
            <content:encoded><![CDATA[<p>As an example, We are going to Change the Status of the Requested Item Record using RPA ServiceNow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e4Mkl6Tmj3AzRtva.jpg" /></figure><h3>Topics to be Cover.</h3><ol><li>Create a package using RPA Desktop Design Studio.</li><li>Publishing the Package in the RPA Hub.</li><li>Configure the basic setup for the Bot Process in the RPA Hub.</li><li>Configure the system where the RPA Bot needs to Run.</li><li>Run the Bot.</li></ol><h3>1. Create a package using RPA Desktop Design Studio.</h3><p>Download and install the RPA Desktop Design Studio from the RPA Application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N7SC8YWi8JoHw-h59s4e5Q.png" /></figure><p>Click on the Unattended Automation to create the new Unattended Bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QTh38xs1_QRq_VeGMTSyaw.png" /></figure><p>Enter Name and Description that helps to understand what the bot is going to do</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*p7SDuamc9PFS1zPgycmLjg.png" /></figure><p>click on the connectors in the Toolbox in the down left side of the window. Click on the Connectors dropdown to open the modules. Drag the window connector to the Global object in the left side of the window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dfL2doBk3SJ4iNuLYjmejQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oJSA5-5lhLOWTSY-fWOMEQ.png" /></figure><p>To open the Chrome, Chrome can open in multiple ways iam going to open by opening <strong>RUN</strong> and going to enter value as chrome to open the <strong>Chrome.</strong></p><p>for achieve the above process create a flow in the RPA Desktop Design studio</p><p>Search for the SendKeys in the toolbox. use the <strong><em>Utilities &gt; Keyboard &gt; SendKeys</em></strong> to open the run command drag and drop the element in the main near by the Start element and enter the value as “[Lwin+R]”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kS5BlBcHyLKTQFGNet6B4w.png" /></figure><p>Need Some waiting time because the run tab need to open for that use the Wait for time element from <strong><em>General &gt; Wait For Time </em></strong>and all the value a 1 . which means 1 sec waiting time. which is enough to Again drag and drop the same element to send the value as “chrome” to the Run tab and Again drag and drop the same element to make the Enter to press by give the value as “[Enter]”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*hrT3Ad6FqzoJQPkMVgHXwQ.png" /></figure><p>From the Toolbox search for the windows connector drag and drop the windows connector from <strong><em>Connectors &gt; Windows Connector </em></strong>to the <strong>Global Objects </strong>in the right side <strong>Project Explorer.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UVPPT4cBSCxdxIdBP4Qxhw.png" /></figure><p>Right click on the winApplication and select the configuration to get the configuration tab open. On the drop down select the <strong><em>New Tab — Google Chrome. </em></strong>and click on the Add Window button to add the chrome window to the configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*KeShwKu_ZeZI4zdrbu1kHw.png" /></figure><p>Right click <strong><em>New Tab — Google Chrome </em></strong>under the windows section and an popup menu appears select the <strong>Add Element </strong>button to add new Elements for the Window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*AgZDbrBSPqlL2XEWYJvx5w.png" /></figure><p>Hover the mouse to the Search Bar and Add the element name as chromeSearchBar and click on the Green add button to save and the click the close button and press the ok button to close the configuration window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*igmMZHkKHZ972pTpoazSAw.png" /></figure><p>Back to the RPA Desktop Design Studio. Double tap on the chromeSearchBar in the right side <strong><em>Global Objects &gt; WinApplication &gt; New Tab - Google Chrome &gt; chromeSearchBar</em></strong>. The Methods will shown in the left side on the <strong><em>Object Explorer</em></strong> tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQxDYyFLjPqLZ4fNhxH_0w.png" /></figure><p>From the Object Explorer select the WaitForCreate this method make the flow to wait till the time specified in the method. if the element is created with in the time then the output port returns the value as true or else the value as false.</p><p>add a decision method from the toolbox <strong><em>Conditions &gt; Decision </em></strong>next to the WaitForCreate method to check whether the Element is created or not. Name the decision as <strong><em>isCreated </em></strong>by clicking on the method. connect the two orange dots to transfer the data from the WaitForCreate to the decision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*qnBDi4njv-Tv8KkCFfDfsg.png" /></figure><p>If the decision is true, then we need to enter the URL for the portal in the <strong><em>SetText </em></strong>method (I enter my PDI link) and copy and paste the Enter method which we already used previous step. and Iam connecting the false port to the first <strong><em>SendKeys</em></strong> element [Lwin+R].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*wRNSDL7tSe1DqdmDxD2slQ.png" /></figure><p>Now we need to capture the UserName and Password element to login to the portal. For this starts with the right click on the WinApplication and click on the configure to get in to the configure window.</p><p>In the dropdown select the tab name matches with the chrome header. and click on the Add Window button to add the window to the WINDOWS section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*bf8zx7IFyG3L8fXmEhIBWQ.png" /></figure><p>Right click on the new added window and select Add Element to add new elements. hover to the UserName and set name for the element and click add icon to add the element and same way hover to the PassWord field and set name for the element and click add icon to add the element. Then click on close icon and click the ok button in the configure window to complete the process.</p><p>For the username and password Iam going to use the excel connector for the dynamic input.</p><p>first drag and drop the excel connector to the Global Objects from <strong><em>Connectors &gt; Microsoft Excel. </em></strong>double tap to open the methods of the connectors. Drag and drop <strong><em>Open </em></strong>method and give the file path. In my case i am creating an excel in Desktop location and name the file as <strong><em>Credential.xlsx.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PGxZn6l6lVcFdRQ_7-9MQw.png" /></figure><p>The Username is in the cell number “B1” and the password is in the “B2”. Now Drag and Drop <strong><em>GetCellValue </em></strong>method and give the sheet name as “Sheet1” and cell value as “B1” and copy and paste the method and change the cell value as “B2”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*oTSaQLZryb2cxaExCVBmkg.png" /></figure><p>Double tap on the userName element. to open the methods in the right side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/205/1*EcKOaQJChV_mIipbWAsaqA.png" /></figure><p>Use the waitForCreate method to verify that the element is created or not and after the creation use the <strong><em>SetText</em></strong> method to set the username in the field and the double tap the password in the right side to open the methods and use SetText method to set the password. and copy and paste the SendKeys method which is used to press Enter. in previous steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*mJyLyly5svkUSvhHwokLsA.png" /></figure><p>connect data output of the B1 method to the input of the userName <strong><em>SetText </em></strong>method and B2 data out to password <strong><em>SetText </em></strong>method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*7KbLF7lvkJRq4khOlzHjQw.png" /></figure><p>Now right click on the WinApplication and click configure to open the configure window and select the current ServiceNow page which we are going to work and click Add Window.</p><p>Right click on the new added window under the WINDOWS section and click add element to add the element of the search bar in ServiceNow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N8DXN8ezbUHZ8AzsG_ILaQ.png" /></figure><p>Then give a name to the Element and click on the add button and click close button and click the ok button on the configure window to close the process.</p><p>Then double tap on the new element <strong><em>ServicenowSearchBar </em></strong>and drag and drop the waitForCreate method from the left side menu for verify that the element is creater or not. after verification drag and drop the SendKeys in the menu on the <strong><em>ServicenowSearchBar </em></strong>element and enter the value as id of the record which we need to update. and copy and paste the Enter Sendkeys method.</p><p>Now we get the search result there we need to press the open new tab button. to get the button right click on the WinApplication and click configure and add the current page and click the Add Window button. right click on the new window and click the Add Element and hover to the <strong><em>open in new tab button </em></strong>and give name as <strong><em>NewTabBtn </em></strong>then click add button and close button and ok button in configure.</p><p>Double click on the <strong><em>NewTabBtn </em></strong>it will open the methods in left side. drag and drop the waitForCreate to verify the element is created or not. and then drag and drop the click method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*d3ecp78LXYmjLCrH2VLJvg.png" /></figure><p>Add the current window to the WinApplication and add the Additional comment field and Update Button to the configure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*PRw1BO998tg2bwcJDBw7hg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*6XeRwK7rc-DCoo8NnSVlcw.png" /></figure><p>Double click on the comment element Added now. Drag and drop waitForCreate method for validate the comment element is created or not. drag and drop the SetText and type your comment in the input text field. and double tap on the UpdateBtn. drag and drop the click method from left Object Explorer. After complete the window need to close for that we can user Alt+F4. Search for the SendKeys in the ToolBox and drag and drop the method Utilities &gt; Keyboard &gt; SendKeys. Enter the the value as “[LeftAlt+F4]”.</p><h3>2. Publishing the Package in the RPA Hub.</h3><p>To publish the Package which first connect to the Instance by clicking on the <strong><em>connect to instance </em></strong>on the top header menu.</p><p>Roles Required to do the publication : sn_rpa_fdn.rpa_release_manager, sn_rpa_fdn.rpa_developer, sn_rpa_fdn.rpa_robot, sn_rpa_fdn.rpa_support_user, sn_rpa_fdn.rpa_assisted_user, or sn_rpa_fdn.rpa_admin</p><p>First enter the name and URL of your instance then click ok. After that enter the username and password of the instance to login.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/137/1*iAMwog6kWcLmEtRNzM6z3A.png" /></figure><p>After Login to the Instance, Click the <strong><em>Publish</em></strong> button to publish the package. the new tab opens and ask for the <strong><em>New Package</em></strong> or <strong><em>New version (to existing package)</em></strong>. select the <strong><em>New Package </em></strong>and Enter the Package name and Comments for the new version. and click publish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*c1VkxxALlXsMNvfRoXV1ow.png" /></figure><h3>3. Configure the basic setup for the Bot Process in the RPA Hub.</h3><p>Open the RPA Hub by navigation <strong><em>Robotic Process Automation &gt; RPA Hub. </em></strong>Click on the list button and create a Bot Process by click the Bot Process under Build. Then click on the new button.</p><p>Enter the basic details like Name and select the process type as Unattended. Trigger Mode as API because we need to trigger the bot by the flow or else you can choose schedule which trigger the bot based on the time period. Select the package by click the field and choose the proper version and Click on save.</p><p>Get back to the List click on the Robots below and click on the New button to create a New Robot (System). Give a Name to the Robot and the enter the Machine Name which is HostName of the system where the bot need to run. to know the Host name, open the CMD and type <strong>“hostname”</strong> then you get the Machine Name.</p><p>Now we need to give credentials of the System where the bot need to run, For that go to the Bot process you build and in <strong><em>Credential Sets </em></strong>Tab click on new button to create credentials. Give a Name for the credential and give the Windows Username which is the combination or DomainName and the UserName of the system to get this Windows UserName. Open the CMD and Type <strong>“echo %USERDOMAIN%\%USERNAME%” </strong>it will give the Windows UserName. Enter this UserName to the Windows UserName field and enter the Windows Password of the system where the bot need to run.</p><p>Now click on the Process Robot Credentials tab and click on New Button then select credential Sets and Robot which we created now and click Save button to complete the process.</p><p>Click on publish button to publish the Bot Process so then we can run our Bot in the selected System.</p><h3>4. Configure the system where the RPA Bot needs to Run.</h3><p>Navigate to <strong><em>Robotic Process Automation &gt; Administration &gt; Downloads </em></strong>in the All menu of the ServiceNow instance. and click on the download icon of <strong><em>Unattended Robot (64 bit) </em></strong>under <strong><em>Unattended Robot (MSI) and Login Agent (MSI). </em></strong>and install this application in the System where the Bot needs to run.</p><p>After installation, Click on the <strong><em>Show Hidden Icon </em></strong>and Right click on <strong><em>unattended robot</em></strong> application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/1*OiyYklJkniiHbkxz1qvLMg.png" /></figure><p>click on the Settings to Open the Settings menu of unattended robot application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*FKKjrza6RiXtxyz2D878_Q.png" /></figure><p>In the settings Enter the <strong><em>RPA Hub </em></strong>which is the URL on the ServiceNow Instance. Then choose the Basic authentication and enter the Username and Password on the Robot user in Instance to login and click on Connect button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*Y7DF3rhNp6ikknB2BYJHzg.png" /></figure><h3>5. Run the Bot.</h3><p>To run the Bot, Get into the Bot Process which we created and published with in the RPA Hub. and Click on the Start process. to trigger the RPA Bot in the connected System.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dd7efb53979" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>