Visual map — Ch.10 · Implementation — go-live
Seed → E2E → Update Set → UAT matrix
Cutover on TARGET instance
Implementation
Full visual path (all chapters): VISUAL_FROM_SCRATCH_00_16.html
Studio-only from scratch: Go-live checklist after creating objects via Studio chapters 01–09 (and optional 03–08).
Also open: Properties + Direct Links · Schema · Studio Create All Objects · Previous: 09 Modules
How implementation artifacts relate
Seed data → E2E demo → Update Set export → UAT sign-off matrix.
Rule 0 — Before any object (Application + Update Set + Studio)
Repeat these checks before creating or editing any application file. This section is also section 00 Update Set — create the capture set first.
- Application picker — top-right globe / application menu → select HR Leave (
x_786686_hr_leave). Never leave Global selected when creating scoped artifacts. - Update Set — All → System Update Sets → Local Update Sets → New:
After submit: open the record → click Make Current. Direct list: {BASE}/sys_update_set_list.doField Value Name HR Leave – BuildApplication HR Leave State In Progress Description Captures all HR Leave lab artifacts - Open Studio — {BASE}/$studio.do → confirm header shows HR Leave.
If artifacts land in Global scope, delete them and recreate under HR Leave. ACLs and events created globally will not behave correctly for this app.
Verify Update Set: Create a test Script Include in Studio → open HR Leave – Build → Related List Customer Updates shows the new file.
Part 1: Seed Data
Purpose
Lab employee, manager link, and opening balance for E2E demos.
Navigation path
Prerequisites
- Chapters 01–02 complete (tables, users, properties).
Step-by-step create
- Lookup sys_ids for employee1 and manager1 users.
- Run background script below as admin, Application = HR Leave.
- Verify employee_v2 and bal_v2 rows.
Full script (paste-ready)
(function () {
var empUser = 'PASTE_EMPLOYEE1_SYS_ID';
var mgrUser = 'PASTE_MANAGER1_SYS_ID';
var emp = new GlideRecord('x_786686_hr_leave_employee_v2');
emp.initialize();
emp.u_user = empUser;
emp.u_employee_id = 'E-1001';
emp.u_department = 'People Ops';
emp.u_manager = mgrUser;
emp.u_join_date = '2024-01-15';
emp.u_grade = 'G5';
var empId = emp.insert();
var bal = new GlideRecord('x_786686_hr_leave_bal_v2');
bal.initialize();
bal.u_employee_ref = empId;
bal.u_year = 2026;
bal.u_leave_type = 'annual';
bal.u_entitled = parseInt(gs.getProperty('x_786686_hr_leave.config.annual_days', 20), 10);
bal.u_used = 0;
bal.u_remaining = bal.u_entitled;
bal.insert();
gs.info('Seeded employee=' + empId);
})();
Verify checklist
- employee_v2 links employee1 → manager1.
- bal_v2 year 2026 with entitled from property.
Demo / test
employee1 creates req_v2 → BR1 sets approver manager1.
Part 2: E2E Demo Checklist
Purpose
Prove full leave lifecycle from draft/submit through approval, audit, balance, notifications, portal, REST.
Prerequisites
Verify checklist
Complete after Application Setup through Flow (extended: Portal, REST).
- Update Set current — HR Leave – Build (Rule 0).
- Seed employee — Part 2: employee_v2, Part 3: Users.
- Seed balance — Part 4: bal_v2.
- Create request — Part 3: req_v2 OR Part 2: Record Producer.
- Submit — Part 15: UI Action, Part 9: BR2.
- Flow approval — Part 3: Flow.
- Audit — Part 10: BR3.
- Balance — BR3 updates bal_v2.
- Notification — Part 2: Notifications.
- Security — Part 4: ACLs.
- Portal — Part 3: hrlx_home.
- REST — Part 4: REST Explorer.
Demo / test
Walk checklist top-to-bottom as three personas.
Part 3: Update Set Export
Purpose
Complete and export HR Leave – Build for target instance promotion.
Navigation path
Direct URL
Form fields
| Field | Value |
|---|---|
| Name | HR Leave – Build |
| State | Complete |
| Application | HR Leave |
Step-by-step create
- HR Leave – Build → State = Complete.
- Export via Retrieved Update Sets or XML per process.
- Target: Import → Preview → Commit.
- Post-import: users/groups if missing; verify 9 properties; run accrual job once.
- Smoke test: employee1 submit → manager1 approve → balance updated.
Never promote Global artifacts. Confirm Application = HR Leave on every captured file.
Verify checklist
- Customer Updates lists all scoped artifacts.
Demo / test
Import to second PDI → smoke test.
Part 4: UAT Matrix
Purpose
Sign-off matrix for lab personas and expected outcomes.
Form fields — test matrix
| Persona | Test | Expected |
|---|---|---|
| employee1 | Create + submit leave | State submitted, approver = manager1 |
| manager1 | Approve in My Approvals | State approved, notification sent |
| hradmin | View all modules | Employees, Balances, Audit visible |
| employee1 | Open coworker req URL | ACL denied |
Seed values: SCHEMA_AND_DATA.html
Verify checklist
- All four UAT rows pass.
Demo / test
Record pass/fail per row before go-live.
Implementation verify checklist
- Seed data present.
- E2E checklist green.
- Update Set exported.
- UAT matrix signed.