Book Image

Microsoft Dynamics 365 Extensions Cookbook

Book Image

Microsoft Dynamics 365 Extensions Cookbook

Overview of this book

Microsoft Dynamics 365 is a powerful tool. It has many unique features that empower organisations to bridge common business challenges and technology pitfalls that would usually hinder the adoption of a CRM solution. This book sets out to enable you to harness the power of Dynamics 365 and cater to your unique circumstances. We start this book with a no-code configuration chapter and explain the schema, fields, and forms modeling techniques. We then move on to server-side and client-side custom code extensions. Next, you will see how best to integrate Dynamics 365 in a DevOps pipeline to package and deploy your extensions to the various SDLC environments. This book also covers modern libraries and integration patterns that can be used with Dynamics 365 (Angular, 3 tiers, and many others). Finally, we end by highlighting some of the powerful extensions available. Throughout we explain a range of design patterns and techniques that can be used to enhance your code quality; the aim is that you will learn to write enterprise-scale quality code.
Table of Contents (19 chapters)
Title Page
Credits
Foreword
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Creating early bound entity classes


Manipulating entity records in your server-side customization can be done using early bound or late bound classes. Early bound classes allow you to use Visual Studio intellisense and dot notations to access  and validate entity names and attribute names at compile-time. On the other hand, with a late bound entity, a developer will have to type the entity and attribute's names manually  which will be validated at runtime. Nonetheless, late bound entities have an advantage; they give you the flexibility to write generic code unbound to specific entities and attributes.

Getting ready

In order to generate early bound entity classes, you will need to download a version of the Dynamics 365 SDK that matches your Dynamics 365 instance. You will also need an active Dynamics 365 user with System Customizer or higher privileges.

How to do it...

  1. Navigate to the <SDK folder location>\bin folder in a command prompt.
  2. Run the following command:
CrmSvcUtil.exe /connectionstring...