Book Image

Dynamics 365 Application Development

By : Deepesh Somani, Nishant Rana
Book Image

Dynamics 365 Application Development

By: Deepesh Somani, Nishant Rana

Overview of this book

Microsoft Dynamics 365 CRM is the most trusted name in enterprise-level customer relationship management. The latest version of Dynamics CRM comes with the important addition of exciting features guaranteed to make your life easier. It comes straight off the shelf with a whole new frontier of updated business rules, process enhancements, SDK methods, and other enhancements. This book will introduce you to the components of the new designer tools, such as SiteMap, App Module, and Visual Designer for Business Processes. Going deeper, this book teaches you how to develop custom SaaS applications leveraging the features of PowerApps available in Dynamics 365. Further, you will learn how to automate business processes using Microsoft Flow, and then we explore Web API, the most important platform update in Dynamics 365 CRM. Here, you'll also learn how to implement Web API in custom applications. You will learn how to write an Azure-aware plugin to design and integrate cloud-aware solutions. The book concludes with configuring services using newly released features such as Editable grids, Data Export Service, LinkedIn Integration, Relationship Insights, and Live Assist
Table of Contents (20 chapters)
Title Page
Copyright and Credits
Dedication
Packt Upsell
Contributors
Preface
Index

Using JavaScript in Editable Grid


JavaScript is used in Dynamics 365 to provide customer-side validation, and for other client-side requirements. Editable grids also support JavaScript. The editable grid supports three types of events, which are mentioned in the following points:

  • OnRecordSelect – This event is triggered when the user selects a record in an editable grid
  • OnChange – This event is triggered when any of the columns on the editable grid entity row is changed
  • OnSave – This event is triggered by the Save button

The following gives a brief example of using JavaScript with Editable Grid:

Following is a scenario, which we will implement on an editable grid for opportunity:

  • If the probability is greater than 70%, then set the rating of opportunity to hot
  • If the probability is between 50% to 69%, then set the rating to warm
  • If the probability is less than 50%, then set the rating to cold

Note

Prerequisite: To start working on this example, first add out of box fields, namely Rating and Probability...