← All series

TypeScript for Dynamics 365.

A practical approach to building web resources that are easier to maintain, test and support.

6 parts19 min total reading

This series grew out of projects where JavaScript web resources had become difficult to maintain. TypeScript, testing and telemetry help bring structure to that work.

These articles reflect the tools and APIs available when they were written. The code and downloadable samples are preserved with their original context.

01
Part 1 / 3 min read

Basics

Set up a TypeScript project and create your first Dynamics 365 web resource.

02
Part 2 / 3 min read

Type Declarations

Add type declarations for the Dynamics 365 client API and make your code easier to understand.

03
Part 3 / 3 min read

Webpack & Babel

Bundle TypeScript web resources with a practical Webpack and Babel configuration.

04
Part 4 / 5 min read

Modules & Debugging

Organise your code with ES modules and debug locally using source maps and Fiddler.

05
Part 5 / 3 min read

Unit Testing

Get started with Jest, mocks and unit tests for Dynamics 365 TypeScript web resources.

06
Part 6 / 2 min read

Application Insights

Add Application Insights to your web resources for logging, telemetry and troubleshooting.