How to Update Case Owner with the User that Answers the Call
  • 16 Oct 2024
  • 1 Minute to read
  • Dark
    Light

How to Update Case Owner with the User that Answers the Call

  • Dark
    Light

Article summary

If you want to update the case owner to be the user that answered the call (in the call queue), you will need to use the Data Analytics policy. This policy is able to update records related to calls once the call has finished. This is necessary because the user who answers the call is only known, after the call has taken place.

Creating the new Data Analytics Policy:

  1. Navigate to the Routing Policy tab

  2. Create a new policy

  3. Select Type = Data Analytics, give your policy a name and then click ‘Done’.


  4. Now click ‘Save’ in the top right of the screen.

  5. From the ‘From Policy’ container, click and drag the red dot to add a new action container

  6. Add a ‘Query Object’ app:

    1. Name this item: Query Connected User

    2. Result Set: QueryConnectedUser

    3. Trigger When: uncheck ‘Records found’, check ‘Records not found’ and ‘Error returned’

    4. Record Type: Natterbox User

    5. Filter Results:
      Note: this is where, after the call, we find the user who answered the call.

      1. Field= Email Address

      2. Operator: ‘=’

      3. Value = $(ConnectedEmailAddress)
        Note: you can add this from the macro icon (phone with arrow), it refers to the email address of the user who answered the call

    6. Return fields: Salesforce User


  7. Now, add a new ‘Update a Record’ app into the same action container (below the ‘Query Object’ app)

    1. Name this item: Update Case Owner

    2. Result Set: UpdateCase

    3. Trigger When: leave as ‘Record updated’ checked

    4. Record Type: Case

    5. Record ID: $(SForce_CreateCase.Id)
      Note: this is the macro for the case you created or queried. In this example I have created a case and used the Result Set: CreateCase)

    6. Set Fields Values:

      1. Field: Owner Id

      2. Value: $(SForce_QueryConnectedUser.nbavs__User__c)
        Note: this is the macro set above in the ‘Query Object’ app (Result Set: QueryConnectedUser).



  8. Save!

Amending your existing Call Policy:

  1. Navigate to your call policy (where the inbound number > call queue journey is)


  2. Between the case being queried or created and the call queue, break the connector (double click the grey line).

  3. Add in a new container and choose ‘To Policy’.

  4. Select the ‘Data Analytics’ app

    1. Name this item: Update Case Owner (we recommend this being the same name as the data analytics policy)

    2. Select Policy to run when this call completes: Update Case Owner (name of policy)

  5. Connect the new container to the previous connector it was connected to.

  6. Save!



Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence