Use Case - Creating a ServiceNow Ticket Based on User Input

Create a more sophisticated incident record in ServiceNow, based on the caller's information.

🔍Related Page:  This use case is a more complex extension to Use Case - Creating an incident task in ServiceNow

 

In this scenario we want to create an incident record in ServiceNow, based on the information the caller gives us. 

The flow is as follows:

  1. A caller calls the IT Helpdesk Number.
  2. In the Nimbus workflow, there is a "Customer Input" element asking whether the caller wants to get agent help or open a specific ticket type.
  3. If the caller chooses the incident report, we save the decision into a Parameter. Based on this parameter, we will create a technical or administrative ticket in ServiceNow.
  4. The Power Automate flow starts with a "When a task changes state" Session Event item and checks on the "ParameterUpdatedTrigger Event.

Show a preview of the flow...

 
 

PRECONDITIONS

In this use case we assume that you've already created a Nimbus service. 

Enterprise Routing Your service needs to have a Enterprise Routing service license assigned to be able to use the advanced Workflow Activities. See Nimbus Features for a full overview of all available features by license.

Additionally, ensure to read and follow the Nimbus Power Automate Connector preconditions, as this Use Case will make use of Nimbus Trigger Events and Flow Actions.

You will also need: 

  • A Power Automate Premium subscription for the "Service Now" connector element. The subscription is also required for the Nimbus Connector.  
  • A ServiceNow connection. Alternatively you can use a dev box as described below.
 

INC Icon Legend Accordion

Show Icon Legend

💡 = A hint to signal learnings, improvements or useful information in context. 🔍 = Info points out essential notes or related page in context.
☝ = Notifies you about fallacies and tricky parts that help avoid problems. 🤔 = Asks and answers common questions and troubleshooting points.
❌ = Warns you of actions with irreversible / data-destructive consequence. ✅ = Intructs you to perform a certain (prerequired) action to complete a related step.
 
 

Create your ServiceNow Dev Box

  1. Sign up on https://developer.servicenow.com
  2. Go to the instructions on how to obtain a Personal Developer Instance (PDI) and create your instance.
    ✅ Note down the connection details for later!
  3. Check that in In ServiceNow the status of your instance should show "Online".
  4. Open and log into your box.
  5. Find the Incidents table and open it.
  6. Find the user who has read/write permissions on it (per default Incident.Manager)
  • You can always view connection credentials in My Instance ->"Manage instance password"
  • If you don’t use your instance for more than 10 days, ServiceNow will back it up. Recovery might take very long or cause errors, so we recommend creating a fresh one if you need to test again.
 

Prepare in Nimbus

In Power Automate we can evaluate the choice of the collect information workflow item and create a ServiceNow ticket accordingly. 

  1. In Nimbus, go to Configuration > Parameter > click on "Create New".
  2. In this example we store the input into a Parameter called "HotlineName"
  3. Then we create a workflow where we use this parameter to store the customer input using the "Collect Information"activity.

    Click here to see an overview of this workflow

     
     
  4. We start the workflow with "Accept Conversation" and link it to "Collect Information". This is where the caller will input the choice. We choose the option "Parameter to Save" to store the input to our new Parameter "HotlineName".
    💡 After the "Collect Information" workflow step we will use the Power Automate "Parameter Update" trigger event and create the ServiceNow ticket in the background. We will cover this in the next step as we iterate over the choices and route the call accordingly in your flow's outcome. 
  5. To complete your Nimbus workflow, add a check "Check Parameter" workflow activity after the "input received" exit and connect the outcomes accordingly.
    💡 In our example:
    1. Check 1 is a Technical Ticket (User dialed #1 via DTMF)
    2. Check 2 is an Administration Ticket (User dialed #2 via DTMF)
  6. The exits are then connected to a "Transfer" activity each, leading the user to to the corresponding services.

Create the flow

🔍 In Power Automate we can evaluate the choice of the "Collect Information" workflow activity and create a ServiceNow ticket accordingly. 

  1. We start with "When a task changes state" Trigger Event and want to listen to the "Parameter Updated" Task event.


     
  2. Add a "Switch" element to the flow as for each branch you want to create a different ticket in ServiceNow.
    Switch on the context parameter created in Step 2.
    • On triggerOutputs()?['body/updatedParameterValue']

Create the ServiceNow Ticket

  1. In each branch of your Switch case, add a ServiceNow "Create record" element to the flow.
  2. The first one it will ask you to connect to your ServiceNow instance.
    💡 Give it a clear title, choose Authentication Type “Basic Authentication” and use the credentials copied from the earlier Dev Box preparation step (ServiceNow → My Instance → "Manage instance password")
  3. In your Record Type choose the table name where you want to create the tickets in.
  4. Name your ServiceNow "Create Record" step to handle the "Technical Ticket" (Check1 from the "Collect Information" workflow step in Nimbus).
  5. Under Advanced parameter, select the fields you want to fill in and and dynamic content. For instance using the following Context Fields provided by the Nimbus connector:
    • Sys ID = <Nimbus Taskid>
    • Created <Nimbus Created>
    • Description= New ticket via Nimbus service <Nimbus Service Name>
    • Type = triggerOutputs()?['body/updatedParameterValue']
    • Created By = NimbusPowerAutomate Adapter
  6. Repeat this step for the other branch of your Switch case, this time handling the Administration ticket (Check2 from the "Collect Information" workflow step in Nimbus).
    💡 You can copy and paste the other "Create Record" flow step to save time and avoid mistakes.

Update the Nimbus Task

  1. Finally, add a Nimbus "UpdateTask" Flow Action to the flow and write back the information to the ticket.
  2. Under Advanced parameters, tick the box for “custom Fields” and “Custom Context Parameters”
    1. Customer.CustomFields name = ServiceNowTicket , value = Sys ID
    2. CustomContextParameter name = ServiceNowUrl , value = concat("<your serviceNowURL>/", Sys ID)

Test your flow

  1. Run your flow by calling your main service number
  2. Input the corresponding user choice (DTMF tones) for the incident response team
  3. Verify in ServiceNow that the incident ticket has been created accordingly.

Table of Contents