Microsoft Power Platform/Dynamics 365 CE - Generate TypeScript Definitions

Automatically creates TypeScript type definitions compatible with @types/xrm by extracting form attributes and controls from Dynamics 365/Power Platform model-driven applications.

2025-04-03 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

ئاپتورى
gncnpk
باھا نومۇرى
0 0 0
نەشرى
1.964
قۇرۇلغان ۋاقتى
2025-03-12
يېڭىلانغان ۋاقتى
2025-04-03
Size
19.9 KB
ئىجازەتنامىسى
GPL-3.0
قوللايدىغىنى

xrm-generate-ts-overloads

Automatically creates TypeScript type definitions compatible with @types/xrm by extracting form attributes and controls from Dynamics 365/Power Platform model-driven applications.

You can find the source code repository here: xrm-generate-ts-overloads

Prerequsites

  • A userscript manager such as Tampermonkey (Chrome, Microsoft Edge, Safari, Opera Next, and Firefox) or Greasemonkey (Firefox)

Usage

  1. Download and install the user script.
  2. Load any Dynamics 365 or Model-driven application form.
  3. Click on the blue Generate TypeScript Definitions button in the bottom right corner.
  4. Create a d.ts file in your project folder.
  5. Copy the generated TypeScript defintiions to your d.ts file.

Definitions for subgrids & quick views are generated only if the subgrid/quick view is loaded on the form.

Subgrids must have atleast one row of data for definitions to be generated.

Features

Generated Form-Specific Definitions

Contexts

Method Return Types

Enums

  • OptionSet Options

Interfaces

Subgrid

  • Attributes

Quick Forms/Views