NetLoan - Automating Case Creation from a Payment Status

Overview

A payment status can automatically open a support Case (or update an existing one) when a loan enters it, so delinquent loans land in your support or collections queue without manual effort. You control which Case fields are populated through a Case JSON mapping on the status record. This article shows how to enable case creation or updates and how to build the Case JSON.

Setup Options

Navigation

  • Top navigation: NetLoan > NetLoan Setup > NetLoan Payment Statuses, open the status you want to drive case creation.

Choose one of the two case actions on the status record, then supply the Case JSON.

Case action fields (NetLoan Payment Status record)

Field NameField TypeDescriptionDependenciesOptions / ExampleField ID
Create CaseCheckboxWhen a loan enters this status, creates a new Case. The script automatically sets the Case's Company to the loan's customer and links the loan via the Loan field, then applies your Case JSON. If no title is supplied in the JSON, it defaults to "Overdue Payment".Case JSONCheckedcustrecord_da_pmt_status_create_case
Update CaseCheckboxWhen a loan enters this status, updates the most recent open Case on the loan with your Case JSON. Primarily used on follow-on statuses that come after a status which created the initial case, so a case is guaranteed to exist to update. If the loan has no open case, the update is skipped and logged as an error.Case JSONCheckedcustrecord_da_pmt_status_update_case
Case JSONTextareaA JSON object of Case field IDs to values, applied on create or update. For create, it layers on top of the auto-set Company and Loan fields.Create Case or Update CaseSee belowcustrecord_da_pmt_status_case_json

Use Create Case or Update Case, not both, on a single status.

How the loan links to the Case

On create, the script populates the Case's Loan field (custevent_da_case_loan) with the loan's internal ID, so every generated case is tied back to its loan. You don't need to include this in your JSON.

Building the Case JSON

The Case JSON is a flat object whose keys are Case field internal IDs and whose values are what to set. Find a field's internal ID under Setup > Records Catalog, which is the easiest place to browse the Case record's fields. Example:

{
  "title": "Loan 30+ Days Past Due",
  "priority": "HIGH",
  "category": "3",
  "custevent_collections_tier": "Past Due"
}
  • Text fields take a string ("title").
  • List/record fields take the internal ID of the option as a string ("category": "3").
  • Leave company and the Loan field out - they're set automatically on create.


Considerations

The most common failure is a missing email address. NetSuite's Case record can reject creation with "Please enter an email address if you want to email the reply" when the associated customer has no email. When a case fails to create, the script writes the error message onto the loan record so you can see why. Add an email address to the customer to resolve it.

Use Case Specific Setup

Use Case: Open a collections case at 30 days past due

On a "Past Due" status (Parent Status = In Arrears, Days Overdue = 30):

FieldSettingNotes
Create CaseCheckedOpens a new case when the loan hits this status
Case JSON{"title":"Loan 30+ Days Past Due","priority":"HIGH"}Company and Loan are set automatically

Use Case: Escalate the existing case at 60 days

On a more severe status (Days Overdue = 60), update the case opened earlier rather than creating a duplicate:

FieldSettingNotes
Update CaseCheckedUpdates the most recent open case on the loan
Case JSON{"priority":"HIGH","custevent_collections_tier":"Serious Delinquency"}Requires an open case to exist

Related Articles


Was this article helpful?