SDK Examples — Fluent samples
Copy these into your SDK project src/fluent/ after npx @servicenow/sdk init.
Scope: x_786686_hr_leave
| File | Purpose |
|---|---|
| tables.now.ts | Four app tables |
| script-includes.now.ts | HRLXProLeaveUtilsV2 |
| business-rules.now.ts | BR1 calculate days |
Full guide:
File: ../11_SDK_CURSOR_CLAUDE.md
Quick start:
mkdir hr-leave-sdk && cd hr-leave-sdk
npm init -y
npm install -D @servicenow/sdk@latest
npx @servicenow/sdk auth --add https://YOUR_INSTANCE.service-now.com
npx @servicenow/sdk init
# copy examples into src/fluent/
npx @servicenow/sdk build
npx @servicenow/sdk deploy --auth dev