Skip to main content
Version: v1.0.0(int)

W153: Add timeline note

Appends a note to an SO's timeline, capturing the SO's current status alongside it. Triggered from Sales Order Detail timeline section.

Steps

  1. Load the SO for status context. Call SalesOrders.getSoById. The current status becomes statusAtTime on the note if the caller did not supply one.

  2. Persist the note. Call SalesOrders.addTimelineNote with the body and statusAtTime.

Returns

The new note row.

Business rules

  • Status is captured at time of note. Provides context for later readers; survives subsequent SO status changes.

Errors

  • NotFoundError. The SO was not found.