
During certain scenarios we must call JavaScript from Command bar present in a ribbon for every Dynamics CRM Form. As an example, contact main form was used in a model driven app to explain this scenario.

During certain scenarios we must build a custom html to show data from Dynamics CRM as per customer requirement. As an example, a separate tab was shown on contact form to show selected contact’s Account Address details in the below use case.

During certain scenarios we must send some parameters to a Webresource. To achieve this we must make use of comma separated list of parameters option that is present at event level of an form. As an example contact form was taken and passed first name logical name as parameter to get to know about the first name of the selected contact.

During certain scenarios, we must acquire the total records count present in a sub grid. To achieve this functionality, explicit logic should be written using JavaScript with form controls that are available on the form. Contact forms with account sub grids are required, and the Contact record was used to explain this functionality.

During certain scenarios we must make all CRM form fields as read-only. To achieve this functionality explicit logic should be written using JavaScript with form controls that are available on the form. Contact form was used to show this functionality.

Applications often require different configuration settings or input parameters when deployed to different environments. Environment variables store the parameter keys and values, which then serve as input to various other application objects. Separating the parameters from the consuming objects allows you to change the values within the same environment or when you migrate solutions to other environments. The alternative is leaving hard-coded parameter values within the components that use them. This is often problematic; especially when the values need to be changed during application lifecycle management (ALM) operations. Because environment variables are solution components, we can transport the references (keys) and change the values when solutions are migrated to other environments. As an example, on selected contact record an -environment variable value will be retrieved based on the schema name using webresource.
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 selected contact record this behavior was shown.

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.

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.

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.

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.

In Dynamics 365 CRM, for certain requirements we need to show dialog window. We can use openAlertDialog method present in Client API Reference in Dynamics crm. As an example, for a selected contact record, open dialog will be shown.

In Dynamics 365 CRM, for certain requirements we need to update associations in the related tables i.e., update lookup values. As an example, for a selected contact record account lookup will be updated.

In Dynamics 365 CRM, for certain requirements data needs to be updated for a given record, based on GUID of an entity record. As an example, for a selected contact record respective fields details were passed to update contact record.

In Dynamics 365 CRM, for certain requirements data needs to be retrieved from related entities. Expand query in XRM Web API. As an example, selected contact record guid was passed to fetch details of account that is related to the given contact.

In Dynamics 365 CRM, for certain requirements data needs to be retrieved to achieve business functionality with Web API. As an example, selected contact record guid was passed to fetch details of contact .

Generally, in certain scenarios, we must cancel current flow if at all some condition was not met. So, without opening each flow in the consolidated list of flow runs we can easily find which flow runs passed and which are cancelled. In Power automate we can achieve this by using Cancel Flow Run Action.

Learn how to use the Switch action in Power Automate to handle multiple conditions, define cases and a default case, and test a flow with input values.

Whenever working with json payload’s in power automate, always a possibility of receiving null values inside json, where Parse JSON Action will be errored out because of these null values. To handle this we have to modify Schema of the generated Schema for the provided json.

In Dynamics 365 CRM, for certain requirements data needs to be retrieved to achieve business functionality. As an example, all contact records whose first name starts with V taken for explanation.

Learn how to build a Power Automate instant cloud flow that creates Dataverse contact test records in a loop using a user-supplied record count.

In Dynamics 365 CRM, at times we must show or hide form header,header command bar,header body,Header tab navigator for a selected entity. This can be achieved by using client API Reference. As an example, contact record was taken to show this functionality.

During certain scenarios it is required to call Unbound action. To call a unbound action we can do it with javascript , plugins and power automate. In all the other methods except power automate you have to write explicit logic to call a unbound action. As an example, we call a generic unbound action from power automate.

During certain scenarios it is required to call bound action . To call a bound action we can do it with javascript , plugins and power automate. In all the other methods except power automate you have to write explicit logic to call an bound action. As an example, we call a sample bound action which was built for contact entity/table from power automate.

In Dynamics 365 CRM, at times we must show only date part for a field of date time type if at all customers were not in favour of creating same field with date Only format. Then this can be achieved by the usage of setShowTime Client API reference, which specify whether a date control should show the time portion of the date or not. As an example, Vaccination date is used to explain this functionality.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article