Uncategorized

{Dataverse} Restrict Delete of Entity Record based on Parent Field value

Requirement Permit has lookup of Permit Type. Permit Type has field “Type” with options apple, orange. Now, when Permit record is deleted you should check the value of Type in Permit Type and if it is orange then do not only allow deletion of A record. Otherwise A record shouldn’t be deleted using plugin. Plugin Code using…… Continue reading {Dataverse} Restrict Delete of Entity Record based on Parent Field value

Advertisement

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

{Microsoft Dataverse} Explore Custom API feature Part-4 in Dynamics 365

In previous blog we have written .Net plugin code which will run in Main operation of Execution Pipeline and updated plugin type field on Custom API record. Today’s blog we will write plugin code and register on Pre-Operation event on Custom API message. Custom API does support Pre-Event operation unlike Custom Action. Create new class…… Continue reading {Microsoft Dataverse} Explore Custom API feature Part-4 in Dynamics 365

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

{Microsoft Dataverse} Explore Custom API feature Part-3 in Dynamics 365

In previous blog we have created Custom API and related records. In today’s blog we will write .Net code on our Custom API message. Let me explain what we are going to do in our plugin code. We will pass Contact Record Guid as input parameter and then in plugin code we will use this…… Continue reading {Microsoft Dataverse} Explore Custom API feature Part-3 in Dynamics 365

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

{Microsoft Dataverse} Explore Custom API feature Part-1 in Dynamics 365

Custom APIs offer a new code-first way to define messages that you can add to Dataverse web services. Conceptually, Custom APIs are an extension to Custom Actions that have provided a no-code way to include custom messages Compare Custom API with Custom Action CapabilityWorkflow Custom ActionCustom APIDescriptionDeclarative logic with workflowYesNoWorkflow Actions can have logic defined…… Continue reading {Microsoft Dataverse} Explore Custom API feature Part-1 in Dynamics 365

C# Code · Customization and Configuration · Dynamics Plugins

{Dynamics CRM 365 CE} Using a Party List as a Lookup for a Quickview Form

Dynamics Community Forum Question – My goal is to create a quick view for a few fields for our contact record on one of our activities (in this case the phone call). I can’t use the “Call from” because it’s a Party List and not a Contact Lookup field. Solution Approach Create new custom field…… Continue reading {Dynamics CRM 365 CE} Using a Party List as a Lookup for a Quickview Form

Dynamics Plugins

{Dynamics CRM 365} OVERRIDE ‘REMOVEQUEUEITEM’ OPTION IN PICK FROM QUEUE PROCESS

Recently we had a requirement from client is to always allow Remove items from queue option even if use select No option when use pick a queue item. To achieve this requirement write a plugin code and use below code in your plugin. Register plugin steps on PickFromQueue message and set execution pipeline to preoperation…… Continue reading {Dynamics CRM 365} OVERRIDE ‘REMOVEQUEUEITEM’ OPTION IN PICK FROM QUEUE PROCESS

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 · 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 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