{"id":81,"date":"2011-12-16T09:21:00","date_gmt":"2011-12-16T03:51:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=81"},"modified":"2011-12-16T09:21:00","modified_gmt":"2011-12-16T03:51:00","slug":"performing-crud-operations-synchronously-in-crm-2011-through-json","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/","title":{"rendered":"Performing CRUD Operations synchronously in CRM 2011 through JSON"},"content":{"rendered":"<p>Synchronous methods to create, update and delete the records for the Account entity through JSON. These methods works synchronously.<\/p>\n<p><strong><span>Create Records<\/span><\/strong>: <span>To create the record into the CRM, you need to create an object for that record. After that you need to create the object of the <strong>XMLHttpRequest<\/strong> and open this request through \u201c<strong>POST<\/strong>\u201d method and need to call the send method with this <strong>jsonEntity<\/strong> (create from the target record).<\/span><\/p>\n<p><span><span>function<\/span> <\/span>createRecord( ) {<br \/><span><\/span><span>var<\/span> account = <span>new<\/span> Object( );<br \/>account.Name = <span>&#8220;Create Sample&#8221;;<br \/><\/span>account.Telephone1 = <span>&#8220;555-0123&#8221;;<br \/><\/span>account.AccountNumber = <span>&#8220;ABCDEFGHIJ&#8221;;<br \/><\/span>account.EMailAddress1 = &#8220;<a href=\"mailto:someone1@example.com\">someone1@example.com<\/a>&#8220;;<\/p>\n<p><span>var <\/span>jsonEntity = window.JSON.stringify(account);<br \/><span>var<\/span> createRecordReq = <span>new<\/span> XMLHttpRequest( );<br \/><span>var<\/span> ODataPath = Xrm.Page.context.getServerUrl( ) + <span>&#8220;\/XRMServices\/2011\/OrganizationData.svc&#8221;;<br \/><\/span>createRecordReq.open(&#8216;<span>POST&#8217;<\/span>, ODataPath + <span>&#8220;\/&#8221;<\/span> + <span>&#8220;AccountSet&#8221;,<\/span> <span>false<\/span>);<br \/>createRecordReq.setRequestHeader(&#8220;<span>Accept&#8221;, &#8220;application\/json<\/span>&#8220;);<br \/>createRecordReq.setRequestHeader(&#8220;<span>Content-Type&#8221;, &#8220;application\/json; charset=utf-8<\/span>&#8220;);<br \/>createRecordReq.send(jsonEntity);<\/p>\n<p><span>var<\/span> newRecord = JSON.parse(createRecordReq.responseText).d;<br \/><span>\/\/Alert the Id of the created record<br \/><\/span>alert(&#8220;<span>Id is:<\/span> &#8221; + newRecord.AccountId);<br \/>}<\/p>\n<p><strong><span>Update Record<\/span><\/strong>: <span>Update record request is same as the create but for the Update we need to set the Additional request header for the Method in the <strong>XMLHttpRequest<\/strong>. Here we have added the \u201c<strong>MERGE<\/strong>\u201d method. As shown below<\/span>.<br \/>updateRecordReq.setRequestHeader(&#8220;<span>X-HTTP-Method<\/span>&#8220;, &#8220;<span>MERGE<\/span>&#8220;);<\/p>\n<p><span>And when we open the request, we need to pass the guid of the record. As given in the below script.<br \/><\/span><br \/><span>function<\/span> updateRecord( ) {<br \/><span>var<\/span> account = Object( );<br \/>account.Name = &#8220;<span>Update Name of this Account<\/span>&#8220;;<br \/><span>var<\/span> jsonEntity = window.JSON.stringify(account);<br \/><span>var<\/span> updateRecordReq =<span> new<\/span> XMLHttpRequest( );<br \/><span>var <\/span>ODataPath = Xrm.Page.context.getServerUrl( ) + <span>&#8220;\/XRMServices\/2011\/OrganizationData.svc&#8221;;<br \/><\/span>updateRecordReq.open(&#8216;<span>POST<\/span>&#8216;, ODataPath + &#8220;\/&#8221; + &#8220;<span>AccountSet<\/span>&#8221; + &#8220;<span>(<\/span><span>guid<\/span>&#8216;&#8221; + &#8220;<span>E72B45B9-<\/span><span>58E0-E011-B700-00155D005515<\/span>&#8221; + &#8220;&#8216;)&#8221;,<span> false<\/span>);<br \/>updateRecordReq.setRequestHeader(&#8220;<span>Accept<\/span>&#8220;, &#8220;<span>application\/json<\/span>&#8220;);<br \/>updateRecordReq.setRequestHeader(&#8220;<span>Content-Type&#8221;, &#8220;application\/json; charset=utf-8<\/span>&#8220;);<br \/>updateRecordReq.setRequestHeader(&#8220;<span>X-HTTP-Method&#8221;, &#8220;MERGE<\/span>&#8220;);<br \/>updateRecordReq.send(jsonEntity);<\/p>\n<p>}<\/p>\n<p><span><strong>Delete Record<\/strong>: This is same as update request but here we need to call the Method delete and call send method with the <strong>null<\/strong> parameter.<\/span><br \/><span><\/span><br \/><span>function <\/span>deleteRecord( ) {<br \/><span>var<\/span> deleteRecordReq = <span>new <\/span>XMLHttpRequest( );<br \/><span>var <\/span>ODataPath = Xrm.Page.context.getServerUrl( ) + <span>&#8220;\/XRMServices\/2011\/OrganizationData.svc&#8221;;<br \/><\/span>deleteRecordReq.open(&#8216;<span>POST<\/span>&#8216;, ODataPath + &#8220;\/&#8221; + &#8220;<span>AccountSet<\/span>&#8221; + &#8220;(<span>guid<\/span>&#8216;&#8221; + &#8220;<span>E72B45B9-58E0-E011-B700-00155D005515&#8243; <\/span>+ &#8220;&#8216;)&#8221;,<span> false<\/span>);<\/p>\n<p>deleteRecordReq.setRequestHeader(&#8220;<span>Accept&#8221;, &#8220;application\/json<\/span>&#8220;);<br \/>deleteRecordReq.setRequestHeader(&#8220;<span>Content-Type&#8221;, &#8220;application\/json; charset=utf-8<\/span>&#8220;);<br \/>deleteRecordReq.setRequestHeader(&#8220;<span>X-HTTP-Method&#8221;, &#8220;DELETE<\/span>&#8220;);<br \/>deleteRecordReq.send(<span>null<\/span>);<\/p>\n<p>}<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>Posted by: Inogic<br \/>For more information\/discussions (documents, sample code snippets, detailed work flow or diagrams), <br \/>Please be free to visit the following links or email us: <br \/>Web: http:\/\/www.inogic.com<br \/>Blog: http:\/\/inogic.blogspot.com<br \/>Email: news@inogic.com<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Synchronous methods to create, update and delete the records for the Account entity through JSON. These methods works synchronously. Create Records: To create the record into the CRM, you need to create an object for that record. After that you need to create the object of the XMLHttpRequest and open this request through \u201cPOST\u201d method\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/\">Read More: Performing CRUD Operations synchronously in CRM 2011 through JSON &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,21,22,24],"tags":[1690],"class_list":["post-81","post","type-post","status-publish","format-standard","hentry","category-dynamics-crm-2011","category-dynamics-crm-2013","category-dynamics-crm-2015","category-dynamics-crm-2016","tag-synchronous"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Synchronous methods to create, update and delete the records for the Account entity through JSON. These methods works synchronously.Create Records: To create the record into the CRM, you need to create an object for that record. After that you need to create the object of the XMLHttpRequest and open this request through \u201cPOST\u201d method and\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Inogic\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Performing CRUD Operations synchronously in CRM 2011 through JSON - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Synchronous methods to create, update and delete the records for the Account entity through JSON. These methods works synchronously.Create Records: To create the record into the CRM, you need to create an object for that record. After that you need to create the object of the XMLHttpRequest and open this request through \u201cPOST\u201d method and\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2011-12-16T03:51:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2011-12-16T03:51:00+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Performing CRUD Operations synchronously in CRM 2011 through JSON - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Synchronous methods to create, update and delete the records for the Account entity through JSON. These methods works synchronously.Create Records: To create the record into the CRM, you need to create an object for that record. After that you need to create the object of the XMLHttpRequest and open this request through \u201cPOST\u201d method and\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Inogic\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2011\\\/12\\\/performing-crud-operations-synchronously-in-crm-2011-through-json\\\/#blogposting\",\"name\":\"Performing CRUD Operations synchronously in CRM 2011 through JSON - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Performing CRUD Operations synchronously in CRM 2011 through JSON\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#articleImage\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"datePublished\":\"2011-12-16T09:21:00+05:30\",\"dateModified\":\"2011-12-16T09:21:00+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2011\\\/12\\\/performing-crud-operations-synchronously-in-crm-2011-through-json\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2011\\\/12\\\/performing-crud-operations-synchronously-in-crm-2011-through-json\\\/#webpage\"},\"articleSection\":\"Dynamics CRM 2011, Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016, Synchronous\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2011\\\/12\\\/performing-crud-operations-synchronously-in-crm-2011-through-json\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/#listItem\",\"name\":\"Dynamics CRM\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/#listItem\",\"position\":2,\"name\":\"Dynamics CRM\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2011\\\/#listItem\",\"name\":\"Dynamics CRM 2011\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2011\\\/#listItem\",\"position\":3,\"name\":\"Dynamics CRM 2011\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2011\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2011\\\/12\\\/performing-crud-operations-synchronously-in-crm-2011-through-json\\\/#listItem\",\"name\":\"Performing CRUD Operations synchronously in CRM 2011 through JSON\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/#listItem\",\"name\":\"Dynamics CRM\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2011\\\/12\\\/performing-crud-operations-synchronously-in-crm-2011-through-json\\\/#listItem\",\"position\":4,\"name\":\"Performing CRUD Operations synchronously in CRM 2011 through JSON\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2011\\\/#listItem\",\"name\":\"Dynamics CRM 2011\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2011\\\/12\\\/performing-crud-operations-synchronously-in-crm-2011-through-json\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2011\\\/12\\\/performing-crud-operations-synchronously-in-crm-2011-through-json\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/\",\"name\":\"Inogic\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2011\\\/12\\\/performing-crud-operations-synchronously-in-crm-2011-through-json\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Inogic\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2011\\\/12\\\/performing-crud-operations-synchronously-in-crm-2011-through-json\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2011\\\/12\\\/performing-crud-operations-synchronously-in-crm-2011-through-json\\\/\",\"name\":\"Performing CRUD Operations synchronously in CRM 2011 through JSON - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Synchronous methods to create, update and delete the records for the Account entity through JSON. These methods works synchronously.Create Records: To create the record into the CRM, you need to create an object for that record. After that you need to create the object of the XMLHttpRequest and open this request through \\u201cPOST\\u201d method and\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2011\\\/12\\\/performing-crud-operations-synchronously-in-crm-2011-through-json\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"datePublished\":\"2011-12-16T09:21:00+05:30\",\"dateModified\":\"2011-12-16T09:21:00+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Performing CRUD Operations synchronously in CRM 2011 through JSON - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Synchronous methods to create, update and delete the records for the Account entity through JSON. These methods works synchronously.Create Records: To create the record into the CRM, you need to create an object for that record. After that you need to create the object of the XMLHttpRequest and open this request through \u201cPOST\u201d method and","canonical_url":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/#blogposting","name":"Performing CRUD Operations synchronously in CRM 2011 through JSON - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Performing CRUD Operations synchronously in CRM 2011 through JSON","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/#articleImage","width":1000,"height":325,"caption":"inogic logo"},"datePublished":"2011-12-16T09:21:00+05:30","dateModified":"2011-12-16T09:21:00+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/#webpage"},"articleSection":"Dynamics CRM 2011, Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016, Synchronous"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/#listItem","name":"Dynamics CRM"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/#listItem","position":2,"name":"Dynamics CRM","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2011\/#listItem","name":"Dynamics CRM 2011"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2011\/#listItem","position":3,"name":"Dynamics CRM 2011","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2011\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/#listItem","name":"Performing CRUD Operations synchronously in CRM 2011 through JSON"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/#listItem","name":"Dynamics CRM"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/#listItem","position":4,"name":"Performing CRUD Operations synchronously in CRM 2011 through JSON","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2011\/#listItem","name":"Dynamics CRM 2011"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/","name":"Inogic","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Inogic"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/","name":"Performing CRUD Operations synchronously in CRM 2011 through JSON - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Synchronous methods to create, update and delete the records for the Account entity through JSON. These methods works synchronously.Create Records: To create the record into the CRM, you need to create an object for that record. After that you need to create the object of the XMLHttpRequest and open this request through \u201cPOST\u201d method and","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"datePublished":"2011-12-16T09:21:00+05:30","dateModified":"2011-12-16T09:21:00+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"Performing CRUD Operations synchronously in CRM 2011 through JSON - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Synchronous methods to create, update and delete the records for the Account entity through JSON. These methods works synchronously.Create Records: To create the record into the CRM, you need to create an object for that record. After that you need to create the object of the XMLHttpRequest and open this request through \u201cPOST\u201d method and","og:url":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/","article:published_time":"2011-12-16T03:51:00+00:00","article:modified_time":"2011-12-16T03:51:00+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Performing CRUD Operations synchronously in CRM 2011 through JSON - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Synchronous methods to create, update and delete the records for the Account entity through JSON. These methods works synchronously.Create Records: To create the record into the CRM, you need to create an object for that record. After that you need to create the object of the XMLHttpRequest and open this request through \u201cPOST\u201d method and","twitter:creator":"@inogic","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"81","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-02 05:59:50","updated":"2025-07-03 21:51:47","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/\" title=\"Dynamics CRM\">Dynamics CRM<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2011\/\" title=\"Dynamics CRM 2011\">Dynamics CRM 2011<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPerforming CRUD Operations synchronously in CRM 2011 through JSON\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Dynamics CRM","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/"},{"label":"Dynamics CRM 2011","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2011\/"},{"label":"Performing CRUD Operations synchronously in CRM 2011 through JSON","link":"https:\/\/www.inogic.com\/blog\/2011\/12\/performing-crud-operations-synchronously-in-crm-2011-through-json\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=81"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/81\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}