{"id":2686,"date":"2023-07-31T13:15:34","date_gmt":"2023-07-31T08:15:34","guid":{"rendered":"https:\/\/omar-iqbal.com\/?p=2686"},"modified":"2023-11-23T19:06:42","modified_gmt":"2023-11-23T14:06:42","slug":"create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm","status":"publish","type":"post","link":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/","title":{"rendered":"Create and Update Rows Using a Plugin in Microsoft Dynamics CE (CRM)"},"content":{"rendered":"\n<p>Microsoft Dynamics CRM is a powerful Customer Relationship Management (CRM) tool that helps businesses manage customer interactions and streamline various processes. One of the key features of Dynamics CRM is the ability to use plugins to extend its functionalities and customize data operations. In this article, we will explore how to create, update, and delete rows using a plugin in Microsoft Dynamics CRM, along with code snippets to guide you through the process.<\/p>\n\n\n\n<p><u>What is a Plugin in Microsoft Dynamics CRM(CE)<\/u>?<br>A plugin in Microsoft Dynamics CRM(CE) is a custom business logic that can be registered and executed in response to specific events or messages. Plugins enable developers to automate tasks, modify data, and perform additional operations based on predefined conditions.<\/p>\n\n\n\n<p>To create a plugin in Microsoft Dynamics CRM(CE), follow these steps:<\/p>\n\n\n\n<ol class=\"is-style-cnvs-list-styled-positive cnvs-block-core-list-1688661328645 wp-block-list\">\n<li>First set up your development environment: Ensure you have Visual Studio and the Dynamics 365 SDK installed on your machine.<\/li>\n\n\n\n<li>Create a new project : In Visual Studio, Create a new class library project.<\/li>\n\n\n\n<li><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"388\" class=\"wp-image-2687\" style=\"width: 600px;\" src=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/1_crud_plugin.jpg\" alt=\"\" srcset=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/1_crud_plugin.jpg 1472w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/1_crud_plugin-300x194.jpg 300w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/1_crud_plugin-1024x663.jpg 1024w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/1_crud_plugin-768x497.jpg 768w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/1_crud_plugin-380x246.jpg 380w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/1_crud_plugin-800x518.jpg 800w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/1_crud_plugin-1160x751.jpg 1160w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/li>\n\n\n\n<li>Add references to the required Dynamics 365 assemblies. <strong>Microsoft.Xrm.Sdk<\/strong><\/li>\n\n\n\n<li>To do that Right click on References node in Solution explorer and select Manage NuGet Packages.<\/li>\n\n\n\n<li><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"329\" class=\"wp-image-2688\" style=\"width: 600px;\" src=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/2_crud_plugin.jpg\" alt=\"\" srcset=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/2_crud_plugin.jpg 676w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/2_crud_plugin-300x165.jpg 300w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/2_crud_plugin-380x209.jpg 380w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/li>\n\n\n\n<li>Go to Browse tab, search for Microsoft.Xrm.Sdk and select the latest version and click Install. It will install the assembly which is required for plugin creation.<\/li>\n\n\n\n<li><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"275\" class=\"wp-image-2689\" style=\"width: 600px;\" src=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/3_crud_plugin.jpg\" alt=\"\" srcset=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/3_crud_plugin.jpg 1847w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/3_crud_plugin-300x137.jpg 300w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/3_crud_plugin-1024x469.jpg 1024w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/3_crud_plugin-768x352.jpg 768w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/3_crud_plugin-1536x704.jpg 1536w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/3_crud_plugin-380x174.jpg 380w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/3_crud_plugin-800x366.jpg 800w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/3_crud_plugin-1160x531.jpg 1160w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/li>\n\n\n\n<li>Delete the class which project created by default.<\/li>\n<\/ol>\n\n\n\n<h2 id=\"create-a-row-in-entity-using-plugin\" class=\"wp-block-heading\">Create a row in entity using plugin<\/h2>\n\n\n\n<p>When an account record is created, we will create a contact record with the same account number using plugin.<\/p>\n\n\n\n<p>To create a contact record in entity using CRM plugin follow these steps.<\/p>\n\n\n\n<ol class=\"is-style-cnvs-list-styled-positive cnvs-block-core-list-1690047982123 wp-block-list\">\n<li>Create a new class named as CreateContactRecord.<\/li>\n\n\n\n<li><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"383\" class=\"wp-image-2692\" style=\"width: 600px;\" src=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/4_crud_plugin.jpg\" alt=\"\" srcset=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/4_crud_plugin.jpg 1297w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/4_crud_plugin-300x192.jpg 300w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/4_crud_plugin-1024x654.jpg 1024w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/4_crud_plugin-768x490.jpg 768w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/4_crud_plugin-380x243.jpg 380w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/4_crud_plugin-800x511.jpg 800w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/4_crud_plugin-1160x741.jpg 1160w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/li>\n\n\n\n<li>Replace the class code with the code below.<\/li>\n\n\n\n<li><pre class=\"wp-block-preformatted\">class CreateContactRecord : IPlugin     <br>{         <br>public void Execute(IServiceProvider serviceProvider)         <br>{             <br>    \/\/Initializing Service Context.             <br>    IPluginExecutionContext context =  (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));             <br><br>    IOrganizationServiceFactory factory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));             <br><br>    IOrganizationService service = factory.CreateOrganizationService(context.UserId);             <br><br>try             <br>{                 <br>\/\/Defining Entity Object.                 <br>Entity eTarget = null;                 <br><br>if (context.MessageName == \"Create\")                 <br>{                     <br>eTarget = (context.InputParameters.Contains(\"Target\") &amp;&amp; context.InputParameters[\"Target\"] != null) ?                     context.InputParameters[\"Target\"] as Entity : null;                     <br><br>string AccountName = eTarget.GetAttributeValue<string>(\"accountname\");                     <br>int AccountNumber = eTarget.GetAttributeValue<int>(\"accountnumber\");                     <br>EntityReference ContactLookup = eTarget.GetAttributeValue<entityreference>(\"contact\");                     <br>DateTime AccountDate = eTarget.GetAttributeValue<datetime>(\"accountdate\");                     <br>Money AccountRevenue = eTarget.GetAttributeValue<money>(\"accountrevenue\");                     <br>int AccountOptionset = eTarget.GetAttributeValue<optionsetvalue>(\"accountrevenue\").Value;                     <br><br>\/\/create contact record<br>Entity eNewContact = new Entity(\"contact\");                         <br>eNewContact[\"ContactNumber\"] = AccountNumber;                         <br>service.Create(eNewContact);                                     <br>}             <br>}             <br>catch (Exception ex)             <br>{                 <br>throw new InvalidPluginExecutionException(ex.Message);             <br>}         <br>}     <br>}<\/optionsetvalue><\/money><\/datetime><\/entityreference><\/int><\/string><\/pre><\/li>\n\n\n\n<li><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"446\" class=\"wp-image-2693\" style=\"width: 600px;\" src=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/5_crud_plugin.jpg\" alt=\"\" srcset=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/5_crud_plugin.jpg 1100w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/5_crud_plugin-300x223.jpg 300w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/5_crud_plugin-1024x761.jpg 1024w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/5_crud_plugin-768x570.jpg 768w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/5_crud_plugin-200x150.jpg 200w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/5_crud_plugin-380x282.jpg 380w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/5_crud_plugin-800x594.jpg 800w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/li>\n<\/ol>\n\n\n\n<h2 id=\"update-a-row-in-entity-using-plugin\" class=\"wp-block-heading\">Update a row in entity using plugin<\/h2>\n\n\n\n<p>When an account record is created and if there is any contact record already exists with contact number same as the account number, then we will update that contact name of contact record to &#8220;<strong>Test 1234<\/strong>&#8221; using plugin.<\/p>\n\n\n\n<p>To update a contact record in entity using CRM plugin follow these steps.<\/p>\n\n\n\n<ol class=\"is-style-cnvs-list-styled-positive cnvs-block-core-list-1690735818127 wp-block-list\">\n<li>Create a new class named as UpdateContactRecord.<\/li>\n\n\n\n<li><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"405\" class=\"wp-image-2698\" style=\"width: 600px;\" src=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/6_crud_plugin.jpg\" alt=\"\" srcset=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/6_crud_plugin.jpg 1201w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/6_crud_plugin-300x202.jpg 300w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/6_crud_plugin-1024x691.jpg 1024w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/6_crud_plugin-768x518.jpg 768w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/6_crud_plugin-380x256.jpg 380w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/6_crud_plugin-800x540.jpg 800w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/6_crud_plugin-1160x782.jpg 1160w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/li>\n\n\n\n<li>Replace the class code with the code below.<\/li>\n\n\n\n<li><pre class=\"wp-block-preformatted\">public class UpdateContactRecord : IPlugin\n    <br>{\n        <br><br>\/\/Main Execute Method.\n        <br>public void Execute(IServiceProvider serviceProvider)\n        <br>{\n            <br>\/\/Initializing Service Context.\n            <br>IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));\n            <br><br>IOrganizationServiceFactory factory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));\n            <br><br>IOrganizationService service = factory.CreateOrganizationService(context.UserId);\n            <br>try\n            <br>{\n                <br>\/\/Defining Entity Object.\n                <br>Entity eTarget = null;\n                <br><br>if (context.MessageName == \"Create\")\n                <br>{\n                    <br>\/\/Stage 1 - Retrieving Target Entity.\n                    <br>eTarget = (context.InputParameters.Contains(\"Target\") &amp;&amp; context.InputParameters[\"Target\"] != null) ?\n                    context.InputParameters[\"Target\"] as Entity : null;\n                    <br><br>\/\/Stage 2 - Read Record Scenario.\n                    <br>string AccountName = eTarget.GetAttributeValue<string>(\"accountname\");\n                    <br>int AccountNumber = eTarget.GetAttributeValue<int>(\"accountnumber\");\n                    <br>EntityReference ContactLookup = eTarget.GetAttributeValue<entityreference>(\"contact\");\n                    <br>DateTime AccountDate = eTarget.GetAttributeValue<datetime>(\"accountdate\");\n                    <br>Money AccountRevenue = eTarget.GetAttributeValue<money>(\"accountrevenue\");\n                    <br>int AccountOptionset = eTarget.GetAttributeValue<optionsetvalue>(\"accountrevenue\").Value;\n\n                    <br><br>\/\/Stage 3 - Creating Query Expression.\n                    <br>QueryExpression qeContactUpdate = new QueryExpression(\"contact\");\n                    <br>qeContactUpdate.ColumnSet.AddColumns(\"contactnumber\", \"contactname\", \"contactid\");\n                    <br>FilterExpression filterUpdate = new FilterExpression(LogicalOperator.And);\n                    <br>filterUpdate.AddCondition(\"contactnumber\", ConditionOperator.Equal, AccountNumber);\n                    <br>qeContactUpdate.Criteria.AddFilter(filterUpdate);\n                    <br><br>EntityCollection entityCollectionUpdate = service.RetrieveMultiple(qeContactUpdate);\n                    <br><br>if (entityCollectionUpdate.Entities.Count == 0)\n                    <br>{\n                        <br>\/\/ No Contact Found.\n                    <br>}\n                    <br>else\n                    <br>{\n                        <br>\/\/Stage 4 - Fetched Entity Object Record.\n                        <br><br>foreach (var entity in entityCollectionUpdate.Entities)\n                        <br>{\n                            <br>Entity eContactUpdate = new Entity(\"contact\");\n                            <br><br>\/\/Stage 5 - Mapping Entity Id\n                            <br>eContactUpdate.Id = entity.Id;\n                            <br>eContactUpdate[\"contactname\"] = \"Test 1234\";\n                            <br><br>\/\/Stage 6 - Generating Update Request.\n                            <br>service.Update(eContactUpdate);\n                        <br>}\n                    <br>}\n                <br>}\n            <br>}\n            <br>catch (Exception ex)\n            <br>{\n                <br>throw new InvalidPluginExecutionException(ex.Message);\n            <br>}\n        <br>}\n    <br>}<\/optionsetvalue><\/money><\/datetime><\/entityreference><\/int><\/string><\/pre><\/li>\n\n\n\n<li><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"337\" class=\"wp-image-2700\" style=\"width: 700px;\" src=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/7_crud_plugin.jpg\" alt=\"\" srcset=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/7_crud_plugin.jpg 1707w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/7_crud_plugin-300x144.jpg 300w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/7_crud_plugin-1024x493.jpg 1024w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/7_crud_plugin-768x370.jpg 768w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/7_crud_plugin-1536x740.jpg 1536w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/7_crud_plugin-380x183.jpg 380w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/7_crud_plugin-800x385.jpg 800w, https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/7_crud_plugin-1160x559.jpg 1160w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li>\n<\/ol>\n\n\n\n<p>Thank you for reading this article hope you find it useful.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.linkedin.com\/in\/omar-iqbal-here\/\" target=\"_blank\" rel=\"noreferrer noopener\">Omar Iqbal<\/a><\/p>\n\n\n\n<p>Technical Consultant<\/p>\n\n\n\n<p>References:<\/p>\n\n\n\n<ol>\n\n\n\n<\/ol>\n","protected":false},"excerpt":{"rendered":"Microsoft Dynamics CRM is a powerful Customer Relationship Management (CRM) tool that helps businesses manage customer interactions and&hellip;\n","protected":false},"author":1,"featured_media":2704,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[62],"tags":[83,67,81,69,65,66,70,63,64,80],"class_list":{"0":"post-2686","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-microsoft-dynamics-ce-crm","8":"tag-createupdatedeletecrmplugin","9":"tag-crm","10":"tag-crmplugin","11":"tag-customerrelationshipmanagement","12":"tag-dynamicsce","13":"tag-dynamicscrm","14":"tag-microsoftdynamics365","15":"tag-microsoftdynamicsce","16":"tag-microsoftdynamicscrm","17":"tag-plugincrm","18":"cs-entry","19":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create and Update Rows Using a Plugin in Microsoft Dynamics CE (CRM) - Omar Iqbal&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create and Update Rows Using a Plugin in Microsoft Dynamics CE (CRM) - Omar Iqbal&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Microsoft Dynamics CRM is a powerful Customer Relationship Management (CRM) tool that helps businesses manage customer interactions and&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/\" \/>\n<meta property=\"og:site_name\" content=\"Omar Iqbal&#039;s Blog\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/umerk26\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-31T08:15:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-23T14:06:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/CreateUpdatePluginTitle.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"518\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"omar_iqbal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/omarshykh\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"omar_iqbal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/\"},\"author\":{\"name\":\"omar_iqbal\",\"@id\":\"https:\/\/omar-iqbal.com\/#\/schema\/person\/bf76b3bc6da3287f49fd4713189accd4\"},\"headline\":\"Create and Update Rows Using a Plugin in Microsoft Dynamics CE (CRM)\",\"datePublished\":\"2023-07-31T08:15:34+00:00\",\"dateModified\":\"2023-11-23T14:06:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/\"},\"wordCount\":383,\"image\":{\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/CreateUpdatePluginTitle.jpg\",\"keywords\":[\"CreateUpdateDeleteCRMPlugin\",\"CRM\",\"CRMPLugin\",\"CustomerRelationshipManagement\",\"DynamicsCE\",\"DynamicsCRM\",\"MicrosoftDynamics365\",\"MicrosoftDynamicsCE\",\"MicrosoftDynamicsCRM\",\"PluginCRM\"],\"articleSection\":[\"Microsoft Dynamics CE (CRM)\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/\",\"url\":\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/\",\"name\":\"Create and Update Rows Using a Plugin in Microsoft Dynamics CE (CRM) - Omar Iqbal&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/omar-iqbal.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/CreateUpdatePluginTitle.jpg\",\"datePublished\":\"2023-07-31T08:15:34+00:00\",\"dateModified\":\"2023-11-23T14:06:42+00:00\",\"author\":{\"@id\":\"https:\/\/omar-iqbal.com\/#\/schema\/person\/bf76b3bc6da3287f49fd4713189accd4\"},\"breadcrumb\":{\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#primaryimage\",\"url\":\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/CreateUpdatePluginTitle.jpg\",\"contentUrl\":\"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/CreateUpdatePluginTitle.jpg\",\"width\":518,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/omar-iqbal.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Microsoft Dynamics CE (CRM)\",\"item\":\"https:\/\/omar-iqbal.com\/index.php\/category\/microsoft-dynamics-ce-crm\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create and Update Rows Using a Plugin in Microsoft Dynamics CE (CRM)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/omar-iqbal.com\/#website\",\"url\":\"https:\/\/omar-iqbal.com\/\",\"name\":\"Omar Iqbal&#039;s Blog\",\"description\":\"Associate Technical Consultant\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/omar-iqbal.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/omar-iqbal.com\/#\/schema\/person\/bf76b3bc6da3287f49fd4713189accd4\",\"name\":\"omar_iqbal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/omar-iqbal.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/77c8e6d449070e5f91d3609398694fed75736ca7b40f3b8b29a94259cb446d49?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/77c8e6d449070e5f91d3609398694fed75736ca7b40f3b8b29a94259cb446d49?s=96&d=mm&r=g\",\"caption\":\"omar_iqbal\"},\"sameAs\":[\"https:\/\/omar-iqbal.com\",\"https:\/\/www.facebook.com\/umerk26\",\"https:\/\/www.instagram.com\/omariqbal_here\/\",\"https:\/\/www.linkedin.com\/in\/omar-iqbal-here\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/omarshykh\"],\"url\":\"https:\/\/omar-iqbal.com\/index.php\/author\/omar_iqbal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create and Update Rows Using a Plugin in Microsoft Dynamics CE (CRM) - Omar Iqbal&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/","og_locale":"en_US","og_type":"article","og_title":"Create and Update Rows Using a Plugin in Microsoft Dynamics CE (CRM) - Omar Iqbal&#039;s Blog","og_description":"Microsoft Dynamics CRM is a powerful Customer Relationship Management (CRM) tool that helps businesses manage customer interactions and&hellip;","og_url":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/","og_site_name":"Omar Iqbal&#039;s Blog","article_author":"https:\/\/www.facebook.com\/umerk26","article_published_time":"2023-07-31T08:15:34+00:00","article_modified_time":"2023-11-23T14:06:42+00:00","og_image":[{"width":518,"height":500,"url":"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/CreateUpdatePluginTitle.jpg","type":"image\/jpeg"}],"author":"omar_iqbal","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/omarshykh","twitter_misc":{"Written by":"omar_iqbal","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#article","isPartOf":{"@id":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/"},"author":{"name":"omar_iqbal","@id":"https:\/\/omar-iqbal.com\/#\/schema\/person\/bf76b3bc6da3287f49fd4713189accd4"},"headline":"Create and Update Rows Using a Plugin in Microsoft Dynamics CE (CRM)","datePublished":"2023-07-31T08:15:34+00:00","dateModified":"2023-11-23T14:06:42+00:00","mainEntityOfPage":{"@id":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/"},"wordCount":383,"image":{"@id":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#primaryimage"},"thumbnailUrl":"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/CreateUpdatePluginTitle.jpg","keywords":["CreateUpdateDeleteCRMPlugin","CRM","CRMPLugin","CustomerRelationshipManagement","DynamicsCE","DynamicsCRM","MicrosoftDynamics365","MicrosoftDynamicsCE","MicrosoftDynamicsCRM","PluginCRM"],"articleSection":["Microsoft Dynamics CE (CRM)"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/","url":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/","name":"Create and Update Rows Using a Plugin in Microsoft Dynamics CE (CRM) - Omar Iqbal&#039;s Blog","isPartOf":{"@id":"https:\/\/omar-iqbal.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#primaryimage"},"image":{"@id":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#primaryimage"},"thumbnailUrl":"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/CreateUpdatePluginTitle.jpg","datePublished":"2023-07-31T08:15:34+00:00","dateModified":"2023-11-23T14:06:42+00:00","author":{"@id":"https:\/\/omar-iqbal.com\/#\/schema\/person\/bf76b3bc6da3287f49fd4713189accd4"},"breadcrumb":{"@id":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#primaryimage","url":"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/CreateUpdatePluginTitle.jpg","contentUrl":"https:\/\/omar-iqbal.com\/wp-content\/uploads\/2023\/07\/CreateUpdatePluginTitle.jpg","width":518,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/omar-iqbal.com\/index.php\/2023\/07\/31\/create-and-update-rows-using-a-plugin-in-microsoft-dynamics-ce-crm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/omar-iqbal.com\/"},{"@type":"ListItem","position":2,"name":"Microsoft Dynamics CE (CRM)","item":"https:\/\/omar-iqbal.com\/index.php\/category\/microsoft-dynamics-ce-crm\/"},{"@type":"ListItem","position":3,"name":"Create and Update Rows Using a Plugin in Microsoft Dynamics CE (CRM)"}]},{"@type":"WebSite","@id":"https:\/\/omar-iqbal.com\/#website","url":"https:\/\/omar-iqbal.com\/","name":"Omar Iqbal&#039;s Blog","description":"Associate Technical Consultant","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/omar-iqbal.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/omar-iqbal.com\/#\/schema\/person\/bf76b3bc6da3287f49fd4713189accd4","name":"omar_iqbal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/omar-iqbal.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/77c8e6d449070e5f91d3609398694fed75736ca7b40f3b8b29a94259cb446d49?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/77c8e6d449070e5f91d3609398694fed75736ca7b40f3b8b29a94259cb446d49?s=96&d=mm&r=g","caption":"omar_iqbal"},"sameAs":["https:\/\/omar-iqbal.com","https:\/\/www.facebook.com\/umerk26","https:\/\/www.instagram.com\/omariqbal_here\/","https:\/\/www.linkedin.com\/in\/omar-iqbal-here\/","https:\/\/x.com\/https:\/\/twitter.com\/omarshykh"],"url":"https:\/\/omar-iqbal.com\/index.php\/author\/omar_iqbal\/"}]}},"_links":{"self":[{"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/posts\/2686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/comments?post=2686"}],"version-history":[{"count":9,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/posts\/2686\/revisions"}],"predecessor-version":[{"id":2705,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/posts\/2686\/revisions\/2705"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/media\/2704"}],"wp:attachment":[{"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/media?parent=2686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/categories?post=2686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/omar-iqbal.com\/index.php\/wp-json\/wp\/v2\/tags?post=2686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}