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
- A userscript manager such as Tampermonkey (Chrome, Microsoft Edge, Safari, Opera Next, and Firefox) or Greasemonkey (Firefox)
- Download and install the user script.
- Load any Dynamics 365 or Model-driven application form.
- Click on the blue Generate TypeScript Definitions button in the bottom right corner.
- Create a d.ts file in your project folder.
- 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.
- getAttribute()
- getControl()
- attributes.get()
- controls.get()
- sections.get()
- tabs.get()
- getOption()
- getOptions()
- getSelectedOption()
- getValue()
- getText()
- setValue()
- OptionSet Options
- Attributes
- Attributes
- Controls
- Form Attributes
- Form Controls
- Form Tabs
- Form Quick Views
- Subgrid Attributes
- Quick View Attributes
- Quick View Controls
- Attributes
- Controls
- Quick Views
- Subgrids