Skip to main content
Version: Tokyo

Let's Test the Workflow

In this section, we will test the flow we just created and make sure it functions as expected.

We need to test with a user who has a manger, fortunately ServiceNow allows to impersonate other authenticated users for testing purposes

Let's go back to the ServiceNow admin page

  1. In the banner frame, click the profile photo in the top right to open the user menu.

  2. Select Impersonate User.

    relative

    The Impersonate User dialog box appears.

    1. Search for "David Loo" (it's one of the demo user who has a manager).

    2. Select him

    3. Click Impersonate User

      relative

  3. Let's submit a new application.

  4. Go to the tab with ServiceNow Admin Home page

    relative

  5. and then open the Service Portal

    1. Click All
    2. Type Portal
    3. Click on Service Portal

    relative

  6. In the ServiceNow Portal page.

    1. Search for Telework
    2. Open the catalog item
    3. Complete the form as below and Submit

    relative

  7. Let's check the execution

    1. Go back to the ServiceNow admin page
    2. Impersonate David Loo's manager : Bud Richman
    3. With email enabled on the instance and a valid email address, the manager would get an email notification and allow the manager to approve or reject.
    4. Let's check if the manager has any approval request in "My Approvals list"
      1. In the search, type "my approvals"

        relative

      2. Click on "My approvals"

      3. Yes. There is one. Right-click on the "Requested"

      4. Select "Approve"

        relative

  8. Next, let's check if an email was sent

    1. In the top right, click the profile photo to open the User menu.

    2. Select "End Impersonation".

      relative

    3. on the top-left, type " Outbox"

    4. Select " Outbox"

      relative

    5. We have an email! Click on it to open it

      relative

    6. On the email record, scroll down to the bottom of the page, and click on Preview Email

      relative

    7. And voila! Observe the email that was sent.

      1. We have automated case updates notifications.

      2. Notice the watermark at the bottom of the email. ServiceNow generates a watermark label at the bottom of each notification email to allow matching incoming email to existing records. This helps track emails sent as part of a case and manage responses to emails.

        relative

Congratulations! You successfully built and tested a workflow that saves a lot of time in the organization and makes sure tasks are assigned properly.