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.

  1. Head back into the main ServiceNow interface

  2. On the global search, enter billie.cowley and click View results

    relative

  3. Click Billie Cowley

    relative

  4. On Billie’s user record, click the Roles tab below, then click Edit

    relative

    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.

  5. Under Collection, search x_snc_travel, you should see the two roles you created for your custom application.

  6. Grant the user role to Billie by moving it into the Roles List

    relative

  7. 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.

  8. Click on the profile picture on the top right, and click Impersonate user

    relative

  9. Search and select Billie Cowley

  10. Click Impersonate user

    relative

  11. Close the pop-up screen

  12. Copy the current URL of the page, and open a new Browser tab

  13. 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

    relative

  14. The Service Portal page should now open

  15. Under How can we help?, search for Travel request

    relative

  16. Click the Search icon

  17. The top result should return the form we had created in Exercise 2

    relative

  18. Click Raise a travel request

  19. Confirm that the form appears as expected, then fill in all the fields

    relative

  20. Click Submit

  21. The next screen can be used to track the status of the request and add attachments

    relative

  22. Go back to the ServiceNow main interface, and End impersonation

    relative

  23. Under All, search and select My Approvals

    relative

  24. Remove the filter by clicking All

    relative

  25. Filter by the latest created approval date by clicking Created

  26. Click on the Requested record for Krystle Stika as the Approver

    relative

  27. Review the details you submitted on the bottom of the form, then click Approve

    relative

  28. You will be brought back to the list view

  29. 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

    relative

  30. On the record, notice that the State was automatically changed to Closed Complete, as per our approval flow that was designed

    relative

(Optional) Activity tracking

  1. Click the 3 line menu icon on the top left

    relative

  2. Click Configure, then Form Design

  3. A new tab will open with Form Designer

    relative

  4. On the left sidebar, search activities

  5. Drag and drop Activities (filtered) below Work notes

    relative

  6. Click Save on the top right

  7. Go back to your previous tab with the form view and refresh the page

  8. Your form should now show the Activities section. This will allow you to track any changes to the fields in the form

    relative

  9. Changing the State field to Work in Progress

  10. Right click anywhere on the grey header bar, and click Save

    relative

  11. The Activities section should now show the State change

    relative

  12. As an approver or fulfiller, you can also add work notes for communications both internally and with the requester.

  13. Try typing something into Work notes then click Post. What do you see?

    relative

Congratulations, you did it!

You’ve successfully built a simple application for employees to raise travel requests and seek manager approval!

relative

There are obviously so much more you can do with the application to make it even better, some ideas:

  1. Integrate with APIs to get a list of flights on specific travel dates so you get as accurate a travel estimate as possible

  2. Add functionality to capture multiple location travel itineraries

  3. Run all requests and approvals via Email / Microsoft Teams / Slack / Virtual Agent etc.

  4. Build dashboards to track requests

  5. 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!


Previous exercise


Back to top

Shao Wei Tan, 22 Aug 2022, based on the Utah release.