logo

NJP

UpdateSet ERD

UpdateSet ERD

by UpdateSet LLC

Architects best friend

0 installs 0 reviews v1.0.1 Scoped Application Request Price

Install Trend

First tracked: 2026-02-28 Latest: 2026-09-09 (0 installs)
View Install Data
Date Install Count Change
2026-09-09 0 -

About

ERD Builder

**ERD Builder** is a ServiceNow Service Portal application that enables administrators to quickly generate **Entity Relationship Diagrams (ERDs)** directly from platform metadata. It provides an intuitive, visual way to explore table structures, relationships, and inheritance without exporting data or relying on external tools.

Designed for architects, developers, and platform administrators, ERD Builder helps teams understand and document their ServiceNow data model with speed and confidence.

Key Capabilities
- **Dynamic Table Discovery**
Search and select ServiceNow tables by name or label using platform metadata.

- **Automatic ER Diagram Generation**
Instantly generate ERDs based on dictionary definitions, including:

- **Configurable Diagram Detail**
Choose between detailed column-level diagrams or compact table-only views. Control the maximum number of attributes rendered per table to manage complexity.

- **Interactive Diagram Viewer**
Explore large diagrams with built-in zoom, pan, reset, and fullscreen controls for improved readability.

- **Export & Share**

- **Access-Aware & Safe by Design**
The application respects ServiceNow ACLs and uses secure metadata access. When access is restricted, ERD Builder degrades gracefully and provides clear warnings.

Designed for ServiceNow
- **Admin-only usage** to prevent unintended exposure
- **Read-only metadata access** — no business or transactional data is queried or modified
- **No new tables or schema changes** introduced
- **Scoped application** suitable for Store publication

Ideal Use Cases
- Understanding complex table relationships in existing instances
- Documenting customizations and data models
- Accelerating onboarding for new developers and architects
- Supporting design reviews, audits, and technical documentation

Key Features

ERD Builder – ServiceNow Widget DocumentationOverview

**ERD Builder** is a custom ServiceNow Service Portal widget that allows administrators to generate **Entity Relationship Diagrams (ERDs)** for ServiceNow tables. The widget dynamically builds diagrams using **Mermaid ERD syntax** , renders them client-side, and supports interactive exploration through zooming, panning, fullscreen mode, and export capabilities. 

The widget is scoped, protected, and restricted to users with the **admin** role.

Key Features1. Table Search and Selection
- Live search of tables using sys\_db\_object, filtering by table name and label.
- Supports partial matches and label-based searching.
- Displays search results in a selectable list with checkboxes.
- Allows bulk actions:
- **Select all**
- **Clear selection**

- Selected tables are shown as removable “pill” tokens.

**Access fallback behavior**

- If the user lacks read access to sys\_db\_object, the widget can fall back to an allow-list (allowed\_tables\_csv option).
- Displays a warning when metadata access is restricted.

2. ERD Generation (Mermaid-Based)
- Generates ER diagrams using **Mermaid ER diagram syntax** (erDiagram).
- Server-side script dynamically builds Mermaid definitions based on:
- Selected tables
- Dictionary metadata (sys\_dictionary)
- Reference relationships
- Table inheritance (super\_class) 

**Diagram detail modes**

- **Columns** : Displays attributes with data types, primary keys (PK), and foreign keys (FK).
- **Compact** : Displays table names only, without attributes. 

**Attribute handling**

- Primary keys are inferred from sys\_id.
- Foreign keys are inferred from dictionary references.
- Column types are normalized (e.g., int, float, date, string).

3. Relationship Visualization
- Reference relationships are rendered as:Parent ||--o{ Child : field\_name
- Supports:
- **Inbound references** to selected tables
- Optional inclusion of **neighbor tables**

- Relationships are derived from sys\_dictionary.reference.

4. Table Inheritance Support
- Optional visualization of table inheritance using extends relationships.
- Parent/child inheritance is read from sys\_db\_object.super\_class.
- Rendered as:Parent ||--|| Child : extends

5. Interactive Diagram Controls
- Client-side rendering via Mermaid.js (loaded dynamically from CDN).
- SVG-based diagram with:
- Zoom in / zoom out
- Reset zoom
- Pan support

- Uses svg-pan-zoom for interaction.
- Automatic resizing on window resize and fullscreen toggle. 

6. Fullscreen Mode
- Diagram container can be toggled into fullscreen.
- Automatically recalculates SVG dimensions when entering or exiting fullscreen.
- Improves usability for large or complex ERDs.

7. Export and Sharing
- **Download SVG** : Exports the rendered ERD as an SVG file (erd.svg).
- **Copy Mermaid Source** : Copies the generated Mermaid definition to the clipboard for reuse outside ServiceNow.
- Displays confirmation messages when actions succeed.

8. Safety and Size Guards
- Configurable maximum column count per table (maxCols, default up to 500).
- Character limit enforced via system property:x\_upse\_erd.erd\_char\_limit
- Diagrams exceeding the limit are truncated with a warning message.

Version History (1)
v1.0.1 2026-02-26 21:18:02
Initial Release – ERD Builder Widget Created: 2026‑02‑11Last Updated: 2026‑02‑12Scope: ERD (x_upse_erd)Widget ID: x_upse_erd Included in this relea...
ID: 2c29a33433077a10dfa2f432cd5c7b04 · Published: Feb 2026 · Updated: Sep 09, 2026