C# Code · Dynamics 365 WEB API · Dynamics Plugins

{Common Data Service} Pass shared variable to plugins execution pipeline from Organization service and WEB API

Introduction The shared variable property allows for including data that can be passed from the API or a plug-in to a step that occurs later in the execution pipeline. You can set a string value that will be available to plug-ins within the ExecutionContext in the SharedVariables collection. Note :- Shared variable passed from Organization Service and…… Continue reading {Common Data Service} Pass shared variable to plugins execution pipeline from Organization service and WEB API

C# Code · Customization and Configuration · Dynamics Plugins · Functional Info

{Dynamics 365} Set default values from the primary entity while creating new record from C#

When we create a record from Dynamics web application in the context of Parent entity then fields which are defined in relationship mapping will be automatically populated in Child record. For example – If we create Contact record from Account entity then fields such as Telephone 1 and address field auto populated. We can do…… Continue reading {Dynamics 365} Set default values from the primary entity while creating new record from C#

C# Code · Customization and Configuration · Data Migration And Integration

{Common Data Service} Apply Optimistic concurrency using Organization Service

Introduction On a multi-threaded and multi-user system like Power Apps, operations and data changes often happen in parallel. A problem arises when two or more update or delete operations on the same piece of data happen at the same time. This situation could potentially result in data loss. The optimistic concurrency feature provides the ability…… Continue reading {Common Data Service} Apply Optimistic concurrency using Organization Service

C# Code · D365 Error · Dynamics Plugins

{Dynamics CRM Error} The formatter threw an exception while trying to deserialize the message

Today while working on one of the queryexpression code in my project I faced this issue. Error Details Message=The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://schemas.microsoft.com/xrm/2011/Contracts/Services:request. The InnerException message was ‘Error in line 1 position 1836. Element ‘http://schemas.microsoft.com/2003/10/Serialization/Arrays:anyType’ contains data from a…… Continue reading {Dynamics CRM Error} The formatter threw an exception while trying to deserialize the message

Dynamics 365 Quick Tips · Functional Info

{Common Data Service} Install and Uninstall Sample Data programatically

Sample data is great for any demo and testing of a feature in CRM instance. We can install and uninstall Sample Data from CRM by navigating to Settings->Data Management->Sample Data We could also install and uninstall Sample Data using Web API and Organization Service through C# code. Using the Web API Install sample data using…… Continue reading {Common Data Service} Install and Uninstall Sample Data programatically

C# Code · Data Migration And Integration · Dynamics 365 Quick Tips · Dynamics Plugins

{CDS Developer Quick Tip} Set Lookup field using Altername key during Create and Update record from C#

One of integration performance issue is to set related entity lookup field where we need to get record ID and then set the lookup field while creating/updating record from C#. As per latest update of SDK, we can now set lookup field using Alternate Key without having to first get record ID. This will improve…… Continue reading {CDS Developer Quick Tip} Set Lookup field using Altername key during Create and Update record from C#

Customization and Configuration · Dynamics CRM Migration · Power Platform Dataflows

{Power Platform} Migrate data using Odata Dataflows

A dataflow is a collection of entities (entities are similar to tables) that are created and managed in environments in the Power Apps service. You can add and edit entities in your dataflow, as well as manage data refresh schedules, directly from the environment in which your dataflow was created. In today’s blog I will…… Continue reading {Power Platform} Migrate data using Odata Dataflows

Dynamics Plugins

Dynamics CRM Monitor CDS Plugins performance

Plugin performance in Dynamics CRM can be monitor and checked to find out the issues and trends like how many times plugins executes or failed. Run-time information about plug-ins and custom workflow extensions is captured and store in the PluginTypeStatistic Entity. These records are populated within 30 minutes to one hour after the custom code executes.…… Continue reading Dynamics CRM Monitor CDS Plugins performance

Dynamics CRM PowerShell

Dynamics CRM Connect to CDS using XrmTooling from PowerShell

To connect to Common Data Service from PowerShell we can use XrmTooling cmdlet provided by Microsoft. Get List of CRM Organizations using XrmTooling cmdlet Install Microsoft.Xrm.Tooling.CrmConnector.PowerShell moduleInstall-Module -Name Microsoft.Xrm.Tooling.CrmConnector.PowerShell -scope CurrentUserStore credential in variable. Provide Username and Password for your CRM Instance$Cred = Get-CredentialGet CRM Organizations. Provide credentials on Login Window$CRMOrgs = Get-CrmOrganizations -Credential $Cred…… Continue reading Dynamics CRM Connect to CDS using XrmTooling from PowerShell