🎯 Learning Objectives
- Send emails programmatically with N/email
- Attach files and link to records in emails
- Get current user context (id, name, role)
- Read script parameters for configuration
- Detect enabled features before using them
- Monitor and optimize governance consumption
📖 Modules
9
N/email Module
Sending emails with attachments, HTML body content, and record linking for activity tracking.
10
N/runtime Module
User context, script parameters, feature detection, governance monitoring, and environment info.
🔑 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