📧 Week 5: Communication & Runtime

Email automation with N/email and runtime context with N/runtime

🎯 Learning Objectives

📖 Modules

9

N/email Module

Sending emails with attachments, HTML body content, and record linking for activity tracking.

⏱️ ~25 min
10

N/runtime Module

User context, script parameters, feature detection, governance monitoring, and environment info.

⏱️ ~35 min

🔑 Key Concepts This Week

email.send()

Send transactional emails

relatedRecords

Link emails to transactions

getCurrentUser()

Get user id, name, role

getParameter()

Read script parameters

isFeatureInEffect()

Check enabled features

getRemainingUsage()

Monitor governance