Back to Basics # 61: Usage of async and await with Webresource in Dynamics CRM

Introduction: Await / Async is built on promises and is a clean way to represent asynchronous processes in a synchronous way. In Dynamics 365 async and await are used especially while working with web api calls so that until promise gets completed other part of the code will not get executed. As an example, on …

Continue reading Back to Basics # 61: Usage of async and await with Webresource in Dynamics CRM

Back to Basics # 60: Get Users Local Date Time with Webresource in Dynamics CRM

Introduction: In Dynamics 365 CRM, for certain requirements we need to get users local system date time to compare with the given dates for certain business logic. As an example, on selected contact record users local date time was fetched. Step 1: Login to the required environment and select required solution [Contact Customizations Solution in …

Continue reading Back to Basics # 60: Get Users Local Date Time with Webresource in Dynamics CRM

Back to Basics # 59: Get User Roles with Webresource in Dynamics CRM

Introduction: In Dynamics 365 CRM, for certain requirements we need to get user roles so that based on those roles we can show or hide few fields or some other core logic. As an example, on selected contact record client api user settings present in Xrm.Utility namespace was used. Step 1: Login to the required …

Continue reading Back to Basics # 59: Get User Roles with Webresource in Dynamics CRM

Back to Basics # 58: Get Header Values with Webresource in Dynamics CRM

Introduction: In Dynamics 365 CRM, for certain requirements we need to get header values that are present in a record. We can get values with form context. As an example, on contact record form context was used to retrieve value of owner. Step 1: Login to the required environment and select required solution [Contact Customizations …

Continue reading Back to Basics # 58: Get Header Values with Webresource in Dynamics CRM

Back to Basics # 57: Understand Confirm Dialog with Webresource in Dynamics CRM

Introduction: In Dynamics 365 CRM, for certain requirements we need to show confirmation dialog window with Yes and No buttons.  We can use openConfirmDialog method present in Client API Reference in Dynamics crm. As an example, for a selected contact record, confirm dialog will be shown. Step 1: Login to the required environment and select …

Continue reading Back to Basics # 57: Understand Confirm Dialog with Webresource in Dynamics CRM