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

Editable Grid and business rules


In Dynamics 365, Business Rules provides a convenient way to apply validations to the fields of an entity. The Business Process Flow will trigger on changing the value of a field to perform specified operations. Editable Grid supports business rules in Dynamics 365. Editable Grid supports the following business rules operations:

  • Show error message
  • Set field value
  • Set business required
  • Set default value
  • Lock or unlock field

To use Business Rules on Editable Grid, there is no need to do more configuration. You can achieve this by making a simple business rule on form level. This business rule will be in action when you change a record's data on the editable grid.

We will create a simple business rule to unlock the main phone field if the preferred method of contact is a phone, or otherwise lock that field. Following are the steps to follow to apply business rules to an editable grid:

  1. Go to Settings | Customization, as shown in the following screenshot:
  1. Click on Customize...