Got 2 minutes? We'd love your feedback to help us improve our documentation.

How to Report on Cases Raised by Voicemail-to-Case

Prev Next

This guide explains how to link each Call Reporting record generated by a voicemail to the Salesforce Case it raised, so you can report on cases created through Voicemail-to-Case. It applies when a voicemail is delivered to an email address that is configured for Email-to-Case in Salesforce.

This guide is intended for advanced Natterbox admins. Further customisations of this solution might not be supported.

Prerequisites

  • Natterbox Call Reporting is enabled, so a Call Reporting record is created for voicemail calls.

  • Voicemails are delivered to an email address that is configured for Email-to-Case in Salesforce, so each voicemail raises a Case.

  • You have permission to create custom fields and build Flows in Salesforce Setup.

How it works

You will create a lookup field that relates a Case to a Call Reporting record, then build a record-triggered Flow. When a voicemail Call Reporting record is created, the Flow finds the matching Case and links the two records in both directions. Once related, you can build Salesforce reports across Cases and their originating calls.

Create a Call Reporting lookup field on the Case object

This field stores the link from a Case to its related Call Reporting record.

  1. Click the Setup cog, then click Setup.

  2. Open Object Manager and find Case by searching in the Quick Find.

  3. Click Fields & Relationships, then click New.

  4. Set the Data Type to Lookup Relationship, then click Next.

  5. Set Related To to Call Reporting, then click Next.

  6. Enter the Field Label as Call Reporting. The Field Name auto-populates as Call_Reporting.

  7. Optionally add a Description and Help Text, and leave the remaining fields as their defaults. Click Next.

  8. Set the field-level security as required, then click Next.

  9. Add the field to the page layouts you want, then click Next.

  10. Add the related lists to the page layouts as required, then click Save.

This Flow runs when a voicemail Call Reporting record is created, finds the matching Case, and relates the two records.

Start the Flow

  1. Click the Setup cog, then click Setup.

  2. Search for Flows in the Quick Find, then click New Flow.

  3. Select Start From Scratch, then click Next.

  4. Select the Record-Triggered Flow type, then click Create.

  5. Click the Start element and configure it as follows:

    • Object: Call Reporting

    • Trigger the Flow When: A record is created

    • Optimize the Flow for: Actions and Related Records

  6. Under Set Entry Conditions, set Condition Requirements to All Conditions Are Met (AND) and add the following condition:

Field

Operator

Value

nbavs__From_Call_Type__c

Equals

Voicemail Record

Find the matching Case

  1. Click the plus sign and add a Get Records element.

  2. Set the Label to Find Voicemail Case. The API Name auto-populates as Find_Voicemail_Case.

  3. Set Get Records of This Object to Case.

  4. Under Filter Case Records, set Condition Requirements to All Conditions Are Met (AND) and add the following conditions:

Field

Operator

Value

Subject

Contains

{!$Record.nbavs__From_Number__c}

Subject

Contains

Voicemail from

Call_Reporting__c

Is Null

{!$GlobalConstant.True}

  1. Under Sort Case Records, set Sort By to CreatedDate and Sort Order to Descending.

  2. Set How Many Records to Store to Only the first record.

  3. Set How to Store Record Data to Choose fields and let Salesforce do the rest.

  4. Under Select Case Fields to Store in Variable, add the Id and Call_Reporting__c fields.

  5. Click the Find Voicemail Case element, then click Add Fault Path.

Update the Call Reporting record with the Case

  1. Click the plus sign and add an Update Records element.

  2. Set the Label to Update CR with Case. The API Name auto-populates as Update_CR_with_Case.

  3. Set How to Find Records to Update and Set Their Values to Use the Call Reporting record that triggered the flow.

  4. Set Condition Requirements to None—Always Update Record.

  5. Under Set Field Values for the Call Reporting Record, set the following:

Field

Value

nbavs__Case__c

{!Find_Voicemail_Case.Id} (the Id of the Case from the previous element)

Update the Case with the Call Reporting record

  1. Click the plus sign and add another Update Records element.

  2. Set the Label to Update Case with CR. The API Name auto-populates as Update_Case_with_CR.

  3. Set How to Find Records to Update and Set Their Values to Specify conditions to identify records, and set fields individually.

  4. Set Update Records of This Object Type to Case.

  5. Under Filter Case Records, set Condition Requirements to Update Records to All Conditions Are Met (AND) and add the following condition:

Field

Operator

Value

Id

Equals

{!Find_Voicemail_Case.Id}

  1. Under Set Field Values for the Case Records, set the following:

Field

Value

Call_Reporting__c

{!$Record.Id}

Save and activate

  1. Click Save and give the Flow a name.

  2. Click Activate.

Verification

To confirm the configuration is working, leave a test voicemail to a number that routes to the Email-to-Case address, then check the resulting Case:

  • The Case shows a populated Call Reporting lookup field pointing to the related Call Reporting record.

  • The Call Reporting record shows the Case in its Case field.

Once the records are linked, you can build Salesforce reports that combine Case data with its originating Call Reporting record.