Back to all case studies
Platform · Reuse

Reusable Script Includes Library

Platform developer — API design and adoption across squads.

~30% code reuse gainLower regression riskFaster delivery
Problem

Server-side logic was duplicated across apps, slowing delivery and creating regression risk.

Approach

Centralized common patterns into Script Includes powered by GlideAjax and GlideAggregate — exposed safely to client scripts and Flow Designer.

Outcomes
  • ~30% reduction in duplicated server-side logic across apps.
  • Faster onboarding for new developers via one canonical library.
  • Fewer regressions on shared logic post-upgrade cycles.
Notable details
  • Client-callable Script Includes with strict ACL scoping.
  • Utility helpers for aggregation and safe GlideRecord traversal.
  • Versioned via Update Sets with change-log conventions.
Stack
Script IncludesGlideAjaxGlideAggregateJavaScript
More work