HR Leave · Australia

10 — Implementation & Config (Studio From Scratch)

E2E UAT checklist, seed data, update set complete/export — professional go-live

Scopex_786686_hr_leave
sys_ide5f5bc9493a303507520703efaba104d
Instance labdev398980
URL token{BASE}
Quick open Visual map Update Sets Leave Requests

Visual map — Ch.10 · Implementation — go-live

See in 10 seconds

Seed → E2E → Update Set → UAT matrix

You build

Cutover on TARGET instance

Track

Implementation

SEEDData
→
E2EDemo
→
EXPORTXML
→
PREVIEWCollisions
→
UATHR signs
✓ Groups do NOT travel✓ Rollback written first✗ UAT signed by builder✗ Accept all collisions

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.

  1. Application picker — top-right globe / application menu → select HR Leave (x_786686_hr_leave). Never leave Global selected when creating scoped artifacts.
  2. Update Set — All → System Update Sets → Local Update Sets → New:
    FieldValue
    NameHR Leave – Build
    ApplicationHR Leave
    StateIn Progress
    DescriptionCaptures all HR Leave lab artifacts
    After submit: open the record → click Make Current. Direct list: {BASE}/sys_update_set_list.do
  3. 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

Step-by-step create

  1. Lookup sys_ids for employee1 and manager1 users.
  2. Run background script below as admin, Application = HR Leave.
  3. 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

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).

  1. Update Set current — HR Leave – Build (Rule 0).
  2. Seed employee — Part 2: employee_v2, Part 3: Users.
  3. Seed balance — Part 4: bal_v2.
  4. Create request — Part 3: req_v2 OR Part 2: Record Producer.
  5. Submit — Part 15: UI Action, Part 9: BR2.
  6. Flow approval — Part 3: Flow.
  7. Audit — Part 10: BR3.
  8. Balance — BR3 updates bal_v2.
  9. Notification — Part 2: Notifications.
  10. Security — Part 4: ACLs.
  11. Portal — Part 3: hrlx_home.
  12. 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

FieldValue
NameHR Leave – Build
StateComplete
ApplicationHR Leave

Step-by-step create

  1. HR Leave – Build → State = Complete.
  2. Export via Retrieved Update Sets or XML per process.
  3. Target: Import → Preview → Commit.
  4. Post-import: users/groups if missing; verify 9 properties; run accrual job once.
  5. Smoke test: employee1 submit → manager1 approve → balance updated.

Never promote Global artifacts. Confirm Application = HR Leave on every captured file.

Verify checklist

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

PersonaTestExpected
employee1Create + submit leaveState submitted, approver = manager1
manager1Approve in My ApprovalsState approved, notification sent
hradminView all modulesEmployees, Balances, Audit visible
employee1Open coworker req URLACL denied

Seed values: SCHEMA_AND_DATA.html

Verify checklist

Demo / test

Record pass/fail per row before go-live.

Implementation verify checklist

  1. Seed data present.
  2. E2E checklist green.
  3. Update Set exported.
  4. UAT matrix signed.