Skip to content

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

License

Notifications You must be signed in to change notification settings

gncnpk/xrm-generate-ts-overloads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 

Repository files navigation

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

Prerequisites

  • 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 and paste the generated TypeScript definitions to your d.ts file.

Definitions for subgrids/quick views/embedded forms are generated only if it has been loaded on the form.

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

Features

Generated Form-Specific Definitions

Contexts

Method Parameter/Return Types

Enums

  • OptionSet Options

Interfaces

Subgrid

  • Attributes

Quick Forms/Views

Literal and Type Unions

  • Form Attributes
  • Form Controls
  • Form Tabs
  • Form Quick Views
  • Subgrid Attributes
  • Quick View Attributes
  • Quick View Controls

Embedded Forms

  • Attributes
  • Controls
  • Quick Views
  • Subgrids

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published