{"id":18899,"date":"2019-06-07T11:42:02","date_gmt":"2019-06-07T11:42:02","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=18899"},"modified":"2020-05-27T11:07:37","modified_gmt":"2020-05-27T11:07:37","slug":"execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/","title":{"rendered":"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p style=\"text-align: justify;\">Microsoft has introduced\u00a0<strong>Xrm.WebApi.online.execute<\/strong>\u00a0to execute an action in Dynamics CRM version 9.0. In our last blog we have seen how to <a href=\"https:\/\/www.inogic.com\/blog\/2019\/01\/execute-action-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/\" target=\"_blank\" rel=\"noopener noreferrer\">Execute action using Xrm.WebApi.online.execute in Dynamics CRM<\/a>. In this blog we will see how to execute action with \u201c<a href=\"https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customer-engagement\/web-api\/columnset?view=dynamics-ce-odata-9\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>ColumnSet<\/strong><\/a><strong>(ComplexType)<\/strong>\u201d type property.<\/p>\n<p style=\"text-align: justify;\">Here we are executing \u201c<strong>GenerateQuoteFromOpportunity<\/strong>\u201d action for sample purpose as this action contains the \u201c<a href=\"https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customer-engagement\/web-api\/columnset?view=dynamics-ce-odata-9\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>ColumnSet<\/strong><\/a><strong>(ComplexType)<\/strong>\u201d type parameter.<\/p>\n<p><strong>Properties of <a href=\"https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customer-engagement\/web-api\/columnset?view=dynamics-ce-odata-9\" target=\"_blank\" rel=\"noopener noreferrer\">ColumnSet<\/a>(ComplexType) parameter:<\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-18900\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/xrm.jpg\" alt=\"xrm\" width=\"759\" height=\"181\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/xrm.jpg 759w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/xrm-300x72.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/xrm-660x157.jpg 660w\" sizes=\"(max-width: 759px) 100vw, 759px\" \/><\/p>\n<p>For these properties we need to add another getMetadata method as shown in the below example.<\/p>\n<p><strong>Syntax: <\/strong><\/p>\n<p>Xrm.WebApi.online.execute(request).then(successCallback, errorCallback);<\/p>\n<p><strong>successCallback:<\/strong> This function call is for when is action executed successfully.<\/p>\n<p style=\"text-align: justify;\"><strong>errorCallback:<\/strong> This function call is for when there is any error while executing action. It returns an error as result in string format.<\/p>\n<p style=\"text-align: justify;\">Given below is the example of how to write the function to execute \u201c<strong>GenerateQuoteFromOpportunity<\/strong>\u201d action:<\/p>\n<p><strong><u>Generate Parameters:<\/u><\/strong><\/p>\n<p>\/**<\/p>\n<p>* This function generates quote from opportunity using GenerateQuoteFromOpportunity action<\/p>\n<p>* @param formContext<\/p>\n<p>* @param opportunityID<\/p>\n<p>*\/<\/p>\n<p>function executeAction(executionContext) {<\/p>\n<p>let functionName = &#8220;executeAction&#8221;;<\/p>\n<p>var opportunityID = null;<\/p>\n<p>var formContext = null;<\/p>\n<p>try {<\/p>\n<p>debugger;<\/p>\n<p>\/\/Get form context<\/p>\n<p>formContext = executionContext.getFormContext();<\/p>\n<p>\/\/Get opportunity id<\/p>\n<p>opportunityID = !isValid(executionContext.getFormContext().data)<\/p>\n<p>|| !isValid(executionContext.getFormContext().data.entity)<\/p>\n<p>|| !isValid(executionContext.getFormContext().data.entity.getId)<\/p>\n<p>? null : executionContext.getFormContext().data.entity.getId();<\/p>\n<p>\/\/Set parameters<\/p>\n<p>var GenerateQuoteFromOpportunityReq = function (OpportunityId, ColumnSetVal) {<\/p>\n<p>this.OpportunityId = { &#8220;guid&#8221;: OpportunityId };<\/p>\n<p>this.ColumnSet = {<\/p>\n<p>&#8220;AllColumns&#8221;: ColumnSetVal,<\/p>\n<p>&#8220;getMetadata&#8221;: function () {<\/p>\n<p>return {<\/p>\n<p>boundParameter: null,<\/p>\n<p>operationType: 0,<\/p>\n<p>operationName: &#8220;GenerateQuoteFromOpportunity&#8221;,<\/p>\n<p>parameterTypes: {<\/p>\n<p>&#8220;AllColumns&#8221;: {<\/p>\n<p>&#8220;typeName&#8221;: &#8220;Edm.Boolean&#8221;, \/\/Primitive Type<\/p>\n<p>&#8220;structuralProperty&#8221;: 1<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>};<\/p>\n<p>this.getMetadata = function () {<\/p>\n<p>return {<\/p>\n<p>boundParameter: null,<\/p>\n<p>parameterTypes: {<\/p>\n<p>&#8220;OpportunityId&#8221;: {<\/p>\n<p>&#8220;typeName&#8221;: &#8220;Edm.Guid&#8221;, \/\/Primitive Type<\/p>\n<p>&#8220;structuralProperty&#8221;: 1<\/p>\n<p>},<\/p>\n<p>&#8220;ColumnSet&#8221;: {<\/p>\n<p>&#8220;typeName&#8221;: &#8220;mscrm.ColumnSet&#8221;, \/\/Complex Type<\/p>\n<p>&#8220;structuralProperty&#8221;: 2<\/p>\n<p>}<\/p>\n<p>},<\/p>\n<p>operationType: 0,<\/p>\n<p>operationName: &#8220;GenerateQuoteFromOpportunity&#8221;<\/p>\n<p>};<\/p>\n<p>};<\/p>\n<p>};<\/p>\n<p>var generateQuoteFromOpportunityReq = new GenerateQuoteFromOpportunityReq(opportunityID, true);<\/p>\n<p>}<\/p>\n<p><strong><u>Execute Action:<\/u><\/strong><\/p>\n<p>Xrm.WebApi.online.execute(generateQuoteFromOpportunityReq).then(function (result) {<\/p>\n<p>\/\/Validate result<\/p>\n<p>if (!isValid(result) || !isValid(result[&#8220;responseText&#8221;])) {<\/p>\n<p>return;<\/p>\n<p>}<\/p>\n<p>else {<\/p>\n<p>\/\/get result in JSON object<\/p>\n<p>var resultJson = JSON.parse(result[&#8220;responseText&#8221;]);<\/p>\n<p>\/\/Validate JSON<\/p>\n<p>if (isValid(resultJson)) {<\/p>\n<p>\/\/Validating the attributes<\/p>\n<p>if (!isValid(Xrm) || !isValid(Xrm.Navigation)) { return; }<\/p>\n<p>\/\/openAlertDialog<\/p>\n<p>Xrm.Navigation.openAlertDialog({ confirmButtonLabel: &#8220;Ok&#8221;, text: &#8220;Quote with ID: &#8221; + resultJson.quoteid + &#8221; is generated successfully. &#8221; });<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>}, function (error) {<\/p>\n<p>throwError(functionName, error);<\/p>\n<p>});<\/p>\n<p>} catch (error) {<\/p>\n<p>throwError(functionName, error);<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>On success it returns a promise object with specific attributes.<\/p>\n<p style=\"text-align: justify;\">In above example we have used \u2018AllColums\u2019 property of \u201c<a href=\"https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customer-engagement\/web-api\/columnset?view=dynamics-ce-odata-9\"><strong>ColumnSet<\/strong><\/a><strong>(ComplexType)<\/strong>\u201d parameter. In the same way we can use \u2018Columns\u2019 parameter. We just need to set \u201c<strong>Edm.String<\/strong>\u201d as <strong>typename<\/strong> in <strong>getMetadata <\/strong>method.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p style=\"text-align: justify;\">In this blog, we have seen how we can execute action with \u201c<a href=\"https:\/\/docs.microsoft.com\/en-us\/dynamics365\/customer-engagement\/web-api\/columnset?view=dynamics-ce-odata-9\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>ColumnSet<\/strong><\/a><strong>(ComplexType)<\/strong>\u201d type parameter using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-pack\/click-2-clone-microsoft-dynamics-crm-records\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-18901\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/Click2Clone-One-Click-Productivity-App-to-Copy_clone-Dynamics-365_CRM-Records.png\" alt=\"Click2Clone-One-Click-Productivity-App-to-Copy_clone-Dynamics-365_CRM-Records\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/Click2Clone-One-Click-Productivity-App-to-Copy_clone-Dynamics-365_CRM-Records.png 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/Click2Clone-One-Click-Productivity-App-to-Copy_clone-Dynamics-365_CRM-Records-300x75.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/Click2Clone-One-Click-Productivity-App-to-Copy_clone-Dynamics-365_CRM-Records-768x192.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/Click2Clone-One-Click-Productivity-App-to-Copy_clone-Dynamics-365_CRM-Records-660x165.png 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Microsoft has introduced\u00a0Xrm.WebApi.online.execute\u00a0to execute an action in Dynamics CRM version 9.0. In our last blog we have seen how to Execute action using Xrm.WebApi.online.execute in Dynamics CRM. In this blog we will see how to execute action with \u201cColumnSet(ComplexType)\u201d type property. Here we are executing \u201cGenerateQuoteFromOpportunity\u201d action for sample purpose as this action contains\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/\">Read More: Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":23725,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[1813],"class_list":["post-18899","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webapi","tag-web-api"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Introduction Microsoft has introduced Xrm.WebApi.online.execute to execute an action in Dynamics CRM version 9.0. In our last blog we have seen how to Execute action using Xrm.WebApi.online.execute in Dynamics CRM. In this blog we will see how to execute action with \u201cColumnSet(ComplexType)\u201d type property. Here we are executing \u201cGenerateQuoteFromOpportunity\u201d action for sample purpose as this action contains\" \/>\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\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/\" \/>\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=\"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0 - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Introduction Microsoft has introduced Xrm.WebApi.online.execute to execute an action in Dynamics CRM version 9.0. In our last blog we have seen how to Execute action using Xrm.WebApi.online.execute in Dynamics CRM. In this blog we will see how to execute action with \u201cColumnSet(ComplexType)\u201d type property. Here we are executing \u201cGenerateQuoteFromOpportunity\u201d action for sample purpose as this action contains\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/xrm.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/xrm.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"759\" \/>\n\t\t<meta property=\"og:image:height\" content=\"181\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-06-07T11:42:02+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-05-27T11:07:37+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=\"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0 - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Introduction Microsoft has introduced Xrm.WebApi.online.execute to execute an action in Dynamics CRM version 9.0. In our last blog we have seen how to Execute action using Xrm.WebApi.online.execute in Dynamics CRM. In this blog we will see how to execute action with \u201cColumnSet(ComplexType)\u201d type property. Here we are executing \u201cGenerateQuoteFromOpportunity\u201d action for sample purpose as this action contains\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/xrm.jpg\" \/>\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\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/#blogposting\",\"name\":\"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0 - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0\",\"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\\\/2019\\\/06\\\/Execute-Action.png\",\"width\":150,\"height\":150,\"caption\":\"Execute Action\"},\"datePublished\":\"2019-06-07T11:42:02+05:30\",\"dateModified\":\"2020-05-27T11:07:37+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/#webpage\"},\"articleSection\":\"WEB API, Web API\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/#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\\\/webapi\\\/#listItem\",\"name\":\"WEB API\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/webapi\\\/#listItem\",\"position\":2,\"name\":\"WEB API\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/webapi\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/#listItem\",\"name\":\"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/#listItem\",\"position\":3,\"name\":\"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/webapi\\\/#listItem\",\"name\":\"WEB API\"}}]},{\"@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\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/#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\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/#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\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/\",\"name\":\"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0 - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Introduction Microsoft has introduced Xrm.WebApi.online.execute to execute an action in Dynamics CRM version 9.0. In our last blog we have seen how to Execute action using Xrm.WebApi.online.execute in Dynamics CRM. In this blog we will see how to execute action with \\u201cColumnSet(ComplexType)\\u201d type property. Here we are executing \\u201cGenerateQuoteFromOpportunity\\u201d action for sample purpose as this action contains\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/Execute-Action.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/#mainImage\",\"width\":150,\"height\":150,\"caption\":\"Execute Action\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/06\\\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\\\/#mainImage\"},\"datePublished\":\"2019-06-07T11:42:02+05:30\",\"dateModified\":\"2020-05-27T11:07:37+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":"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0 - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction Microsoft has introduced Xrm.WebApi.online.execute to execute an action in Dynamics CRM version 9.0. In our last blog we have seen how to Execute action using Xrm.WebApi.online.execute in Dynamics CRM. In this blog we will see how to execute action with \u201cColumnSet(ComplexType)\u201d type property. Here we are executing \u201cGenerateQuoteFromOpportunity\u201d action for sample purpose as this action contains","canonical_url":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/#blogposting","name":"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0 - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0","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\/2019\/06\/Execute-Action.png","width":150,"height":150,"caption":"Execute Action"},"datePublished":"2019-06-07T11:42:02+05:30","dateModified":"2020-05-27T11:07:37+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/#webpage"},"articleSection":"WEB API, Web API"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/#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\/webapi\/#listItem","name":"WEB API"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/webapi\/#listItem","position":2,"name":"WEB API","item":"https:\/\/www.inogic.com\/blog\/category\/webapi\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/#listItem","name":"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/#listItem","position":3,"name":"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/webapi\/#listItem","name":"WEB API"}}]},{"@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\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/#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\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/#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\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/","name":"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0 - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction Microsoft has introduced Xrm.WebApi.online.execute to execute an action in Dynamics CRM version 9.0. In our last blog we have seen how to Execute action using Xrm.WebApi.online.execute in Dynamics CRM. In this blog we will see how to execute action with \u201cColumnSet(ComplexType)\u201d type property. Here we are executing \u201cGenerateQuoteFromOpportunity\u201d action for sample purpose as this action contains","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/Execute-Action.png","@id":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/#mainImage","width":150,"height":150,"caption":"Execute Action"},"primaryImageOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/#mainImage"},"datePublished":"2019-06-07T11:42:02+05:30","dateModified":"2020-05-27T11:07:37+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":"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0 - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Introduction Microsoft has introduced Xrm.WebApi.online.execute to execute an action in Dynamics CRM version 9.0. In our last blog we have seen how to Execute action using Xrm.WebApi.online.execute in Dynamics CRM. In this blog we will see how to execute action with \u201cColumnSet(ComplexType)\u201d type property. Here we are executing \u201cGenerateQuoteFromOpportunity\u201d action for sample purpose as this action contains","og:url":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/xrm.jpg","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/xrm.jpg","og:image:width":759,"og:image:height":181,"article:published_time":"2019-06-07T11:42:02+00:00","article:modified_time":"2020-05-27T11:07:37+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0 - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Introduction Microsoft has introduced Xrm.WebApi.online.execute to execute an action in Dynamics CRM version 9.0. In our last blog we have seen how to Execute action using Xrm.WebApi.online.execute in Dynamics CRM. In this blog we will see how to execute action with \u201cColumnSet(ComplexType)\u201d type property. Here we are executing \u201cGenerateQuoteFromOpportunity\u201d action for sample purpose as this action contains","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/06\/xrm.jpg","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"18899","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 07:11:02","updated":"2025-07-04 06:24:18","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\/webapi\/\" title=\"WEB API\">WEB API<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tExecute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"WEB API","link":"https:\/\/www.inogic.com\/blog\/category\/webapi\/"},{"label":"Execute Action with ColumnSet(ComplexType) type parameter Using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0","link":"https:\/\/www.inogic.com\/blog\/2019\/06\/execute-action-with-columnsetcomplextype-type-parameter-using-xrm-webapi-online-execute-in-dynamics-365-crm-v9-0\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/18899","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=18899"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/18899\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/23725"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=18899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=18899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=18899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}