Exercise 4: Putting it all together - Testing our application
Duration: 20 minutes
Congratulations on making it so far! We have one last thing to do, which is to test our application. Our person of interest here is Billie Cowley who is wanting to raise a travel request. His direct manager is Krystle Stika, and this relationship has already inherited through an Microsoft AD integration. We will first directly grant the Travel request user role to one of our employees for the test.
-
Head back into the main ServiceNow interface
-
On the global search, enter billie.cowley and click View results
-
Click Billie Cowley
-
On Billie’s user record, click the Roles tab below, then click Edit
Also notice on the screenshot above that Billie’s manager is Krystle Stika. You won’t be able to see this on your screen, but note that this has been preconfigured for you.
-
Under Collection, search x_snc_travel, you should see the two roles you created for your custom application.
-
Grant the user role to Billie by moving it into the Roles List
-
Click Save
This is actually not best practice, but only for the purposes of today’s activity. In a real implementation, it would be best to assign a role to a group, and then assign users to that group so they all inherit that role.
-
Click on the profile picture on the top right, and click Impersonate user
-
Search and select Billie Cowley
-
Click Impersonate user
-
Close the pop-up screen
-
Copy the current URL of the page, and open a new Browser tab
-
Paste the URL, and replace everything after service-now.com with /sp
e.g. if the copied URL is: https://sad-oct-123-001.lab.service-now.com/now/nav/ui/classic/params/target/ui_page.do%3Fsys_id%3De7766625074130102b8affa08c1ed037
change it to: https://sad-oct-123-001.lab.service-now.com/sp -
The Service Portal page should now open
-
Under How can we help?, search for Travel request
-
Click the Search icon
-
The top result should return the form we had created in Exercise 2
-
Click Raise a travel request
-
Confirm that the form appears as expected, then fill in all the fields
-
Click Submit
-
The next screen can be used to track the status of the request and add attachments
-
Go back to the ServiceNow main interface, and End impersonation
-
Under All, search and select My Approvals
-
Remove the filter by clicking All
-
Filter by the latest created approval date by clicking Created
-
Click on the Requested record for Krystle Stika as the Approver
-
Review the details you submitted on the bottom of the form, then click Approve
-
You will be brought back to the list view
-
Click on the Approved record for your Travel request, if you followed all the steps so far, this should be the first record created: TRVREQ0001001
-
On the record, notice that the State was automatically changed to Closed Complete, as per our approval flow that was designed
(Optional) Activity tracking
-
Click the 3 line menu icon on the top left
-
Click Configure, then Form Design
-
A new tab will open with Form Designer
-
On the left sidebar, search activities
-
Drag and drop Activities (filtered) below Work notes
-
Click Save on the top right
-
Go back to your previous tab with the form view and refresh the page
-
Your form should now show the Activities section. This will allow you to track any changes to the fields in the form
-
Changing the State field to Work in Progress
-
Right click anywhere on the grey header bar, and click Save
-
The Activities section should now show the State change
-
As an approver or fulfiller, you can also add work notes for communications both internally and with the requester.
-
Try typing something into Work notes then click Post. What do you see?
Congratulations, you did it!
You’ve successfully built a simple application for employees to raise travel requests and seek manager approval!
There are obviously so much more you can do with the application to make it even better, some ideas:
-
Integrate with APIs to get a list of flights on specific travel dates so you get as accurate a travel estimate as possible
-
Add functionality to capture multiple location travel itineraries
-
Run all requests and approvals via Email / Microsoft Teams / Slack / Virtual Agent etc.
-
Build dashboards to track requests
-
Build a travel workspace with playbooks that can monitor requests and also have direct communication with the requestors
You get the idea… the list is endless. You are only limited by your imagination on making the experience seamless for every one involved. This is only the beginning.
ServiceNow makes the world of work, work better for people!