📋 Week 3: Record Operations

Server-side and client-side record manipulation with N/record and N/currentRecord

🎯 Learning Objectives

📖 Modules

5

N/record Module

Server-side record operations: create, load, copy, transform, delete, and submitFields. Working with header fields and sublists.

⏱️ ~35 min
6

N/currentRecord Module

Client-side record manipulation: real-time updates, field validation, and sublist editing in the browser.

⏱️ ~25 min

🔑 Key Concepts This Week

record.load()

Load existing record from database

record.create()

Create new record in memory

getValue() vs getText()

Internal ID vs display value

Sublists

Line items on transactions

submitFields()

Efficient partial record update

currentRecord.get()

Access record in browser context