{"id":29397,"date":"2021-09-24T16:24:53","date_gmt":"2021-09-24T10:54:53","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=29397"},"modified":"2021-10-07T10:50:06","modified_gmt":"2021-10-07T05:20:06","slug":"create-multi-select-optionset-using-pcf-control","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/","title":{"rendered":"Create Multi Select Optionset using PCF Control"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p style=\"text-align: justify;\">Recently in one of our project, we had come acorss a requirement where we needed to create a PCF control for multi select optionset field \u00a0with which user can visualize the values in a list form.<\/p>\n<p style=\"text-align: justify;\">In the new updates of PowerApps Component Framework, with the help of MultiSelectOptionSet type property, now we can develop the PCF control for multi select optionset field. We have given an example, where we create a PCF control for multi select optionset field and added the same on custom multi select optionset field.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-29399 aligncenter\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/PCF-Control-ink.jpeg\" alt=\"PCF Control\" width=\"603\" height=\"368\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/PCF-Control-ink.jpeg 603w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/PCF-Control-ink-300x183.jpeg 300w\" sizes=\"(max-width: 603px) 100vw, 603px\" \/><\/p>\n<p>Given below are the steps to achieve the same:<\/p>\n<p><strong>1<\/strong>. First we need to add MultiSelectOptionSet property in ControlManifest.Input.xml file. The code is as follows:<\/p>\n<p>&lt;property\u00a0name=&#8221;sampleProperty&#8221;\u00a0display-name-key=&#8221;Property_Display_Key&#8221;\u00a0description-key=&#8221;Property_Desc_Key&#8221;\u00a0of-type=&#8221;MultiSelectOptionSet&#8221;\u00a0usage=&#8221;bound&#8221;\u00a0required=&#8221;true&#8221;\u00a0\/&gt;<\/p>\n<p><strong>2<\/strong>. Now define the IInput and IOutputs for multi select optionset in <strong>ManifestTypes.d.ts<\/strong> file.<\/p>\n<pre class=\"lang:css gutter:true start:1\">\/\/Define\u00a0IInputs\u00a0and\u00a0IOutputs\u00a0Type.\u00a0They\u00a0should\u00a0match\u00a0with\u00a0ControlManifest\r\nexport\u00a0interface\u00a0IInputs\u00a0{\r\nsampleProperty:\u00a0ComponentFramework.PropertyTypes.MultiSelectOptionSetProperty;\r\n}\r\nexport\u00a0interface\u00a0IOutputs\u00a0{\r\nsampleProperty?:\u00a0number[];\r\n}\r\n<\/pre>\n<p><strong>3<\/strong>. On load of multi select PCF control, set the current field value in multi select control inside init function.<\/p>\n<pre class=\"lang:css gutter:true start:1\">\/\/Create a select option for each option specified by the target OptionSet and add it to\u00a0the\u00a0dropdown\r\n(context.parameters.sampleProperty\u00a0as\u00a0ComponentFramework.PropertyTypes.MultiSelectOptionSetProperty).attributes?.Options.forEach(option\u00a0=&gt;\u00a0{\r\nconst dropdownOption = document.createElement(\"option\");\r\ndropdownOption.setAttribute(\"value\", String(option.Value));\r\ndropdownOption.innerText = option.Label;\r\ndropdownOption.onclick = this.updateIndividualSelected.bind(this, dropdownOption);\r\ndropdownOption.selected = this._selectedOptions.includes(option.Value);\r\nthis._dropdown.appendChild(dropdownOption);\r\n});\r\n<\/pre>\n<p><strong>4<\/strong>. Add the action on select of multi select optionset to select\/deselect the option.<\/p>\n<pre class=\"lang:css gutter:true start:1\">\/\/onClick\u00a0callback\u00a0for\u00a0individual\u00a0options\u00a0in\u00a0the\u00a0dropdown.\u00a0Clicking\u00a0an\u00a0option\u00a0will\u00a0add\/remove\u00a0it\r\nprivate\u00a0updateIndividualSelected(option:\u00a0HTMLOptionElement):\u00a0void\u00a0{\r\nconst value = Number(option.getAttribute(\"value\"))\r\nconst index = this._selectedOptions.indexOf(value);\r\nif (index === -1) {\r\nthis._selectedOptions.push(value);\r\noption.selected = true;\r\noption.className = \"TestBlue\";\r\n} else {\r\nthis._selectedOptions.splice(index, 1);\r\noption.selected = false;\r\noption.className = \"TestWhite\";\r\n}\r\nthis._notifyOutputChanged();\r\n}\r\n<\/pre>\n<p><strong>5<\/strong>. Set the changed value of multi select optionset using getOutputs function.<\/p>\n<pre class=\"lang:css gutter:true start:1\">\/\/It\u00a0is\u00a0called\u00a0by\u00a0the\u00a0framework\u00a0prior\u00a0to\u00a0a\u00a0control\u00a0receiving\u00a0new\u00a0data.\r\npublic\u00a0getOutputs():\u00a0IOutputs\r\n{\r\n\/\/Send the currently selected options back to the ComponentFramework\r\nreturn { sampleProperty: this._selectedOptions } ;\r\n}\r\n<\/pre>\n<h2>Conclusion:<\/h2>\n<p>In this way, with the help of new MultiSelectOptionSet type property, we can easily create the PCF control for the multi select optionset field.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/user-adoption-monitor-in-dynamics-crm\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone size-full wp-image-29404\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/User-Adoption-Monitor.jpg\" alt=\"User Adoption Monitor\" width=\"768\" height=\"192\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/User-Adoption-Monitor.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/User-Adoption-Monitor-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/User-Adoption-Monitor-660x165.jpg 660w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Recently in one of our project, we had come acorss a requirement where we needed to create a PCF control for multi select optionset field \u00a0with which user can visualize the values in a list form. In the new updates of PowerApps Component Framework, with the help of MultiSelectOptionSet type property, now we can\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/\">Read More: Create Multi Select Optionset using PCF Control &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":[1929,2361],"tags":[1941],"class_list":["post-29397","post","type-post","status-publish","format-standard","hentry","category-pcf","category-technical","tag-pcf-control"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Introduction: Recently in one of our project, we had come acorss a requirement where we needed to create a PCF control for multi select optionset field with which user can visualize the values in a list form. In the new updates of PowerApps Component Framework, with the help of MultiSelectOptionSet type property, now we can\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Tushar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/\" \/>\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=\"Create Multi Select Optionset using PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Introduction: Recently in one of our project, we had come acorss a requirement where we needed to create a PCF control for multi select optionset field with which user can visualize the values in a list form. In the new updates of PowerApps Component Framework, with the help of MultiSelectOptionSet type property, now we can\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/PCF-Control-ink.jpeg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/PCF-Control-ink.jpeg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"603\" \/>\n\t\t<meta property=\"og:image:height\" content=\"368\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2021-09-24T10:54:53+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-10-07T05:20:06+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=\"Create Multi Select Optionset using PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Introduction: Recently in one of our project, we had come acorss a requirement where we needed to create a PCF control for multi select optionset field with which user can visualize the values in a list form. In the new updates of PowerApps Component Framework, with the help of MultiSelectOptionSet type property, now we can\" \/>\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\/2021\/09\/PCF-Control-ink.jpeg\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Tushar\" \/>\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\\\/2021\\\/09\\\/create-multi-select-optionset-using-pcf-control\\\/#blogposting\",\"name\":\"Create Multi Select Optionset using PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Create Multi Select Optionset using PCF Control\",\"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\\\/2021\\\/09\\\/PCF-Control-ink.jpeg\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/09\\\/create-multi-select-optionset-using-pcf-control\\\/#articleImage\",\"width\":603,\"height\":368,\"caption\":\"PCF Control\"},\"datePublished\":\"2021-09-24T16:24:53+05:30\",\"dateModified\":\"2021-10-07T10:50:06+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/09\\\/create-multi-select-optionset-using-pcf-control\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/09\\\/create-multi-select-optionset-using-pcf-control\\\/#webpage\"},\"articleSection\":\"PCF, Technical, PCF Control\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/09\\\/create-multi-select-optionset-using-pcf-control\\\/#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\\\/power-apps\\\/#listItem\",\"name\":\"Microsoft PowerApps\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/#listItem\",\"position\":2,\"name\":\"Microsoft PowerApps\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/pcf\\\/#listItem\",\"name\":\"PCF\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/pcf\\\/#listItem\",\"position\":3,\"name\":\"PCF\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/pcf\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/09\\\/create-multi-select-optionset-using-pcf-control\\\/#listItem\",\"name\":\"Create Multi Select Optionset using PCF Control\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/#listItem\",\"name\":\"Microsoft PowerApps\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/09\\\/create-multi-select-optionset-using-pcf-control\\\/#listItem\",\"position\":4,\"name\":\"Create Multi Select Optionset using PCF Control\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/pcf\\\/#listItem\",\"name\":\"PCF\"}}]},{\"@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\\\/2021\\\/09\\\/create-multi-select-optionset-using-pcf-control\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/09\\\/create-multi-select-optionset-using-pcf-control\\\/#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\":\"Tushar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/09\\\/create-multi-select-optionset-using-pcf-control\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Tushar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/09\\\/create-multi-select-optionset-using-pcf-control\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/09\\\/create-multi-select-optionset-using-pcf-control\\\/\",\"name\":\"Create Multi Select Optionset using PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Introduction: Recently in one of our project, we had come acorss a requirement where we needed to create a PCF control for multi select optionset field with which user can visualize the values in a list form. In the new updates of PowerApps Component Framework, with the help of MultiSelectOptionSet type property, now we can\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/09\\\/create-multi-select-optionset-using-pcf-control\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"datePublished\":\"2021-09-24T16:24:53+05:30\",\"dateModified\":\"2021-10-07T10:50:06+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":"Create Multi Select Optionset using PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction: Recently in one of our project, we had come acorss a requirement where we needed to create a PCF control for multi select optionset field with which user can visualize the values in a list form. In the new updates of PowerApps Component Framework, with the help of MultiSelectOptionSet type property, now we can","canonical_url":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/#blogposting","name":"Create Multi Select Optionset using PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Create Multi Select Optionset using PCF Control","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\/2021\/09\/PCF-Control-ink.jpeg","@id":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/#articleImage","width":603,"height":368,"caption":"PCF Control"},"datePublished":"2021-09-24T16:24:53+05:30","dateModified":"2021-10-07T10:50:06+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/#webpage"},"articleSection":"PCF, Technical, PCF Control"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/#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\/power-apps\/#listItem","name":"Microsoft PowerApps"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/#listItem","position":2,"name":"Microsoft PowerApps","item":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/#listItem","name":"PCF"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/#listItem","position":3,"name":"PCF","item":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/#listItem","name":"Create Multi Select Optionset using PCF Control"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/#listItem","name":"Microsoft PowerApps"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/#listItem","position":4,"name":"Create Multi Select Optionset using PCF Control","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/#listItem","name":"PCF"}}]},{"@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\/2021\/09\/create-multi-select-optionset-using-pcf-control\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/#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":"Tushar","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Tushar"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/","name":"Create Multi Select Optionset using PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction: Recently in one of our project, we had come acorss a requirement where we needed to create a PCF control for multi select optionset field with which user can visualize the values in a list form. In the new updates of PowerApps Component Framework, with the help of MultiSelectOptionSet type property, now we can","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"datePublished":"2021-09-24T16:24:53+05:30","dateModified":"2021-10-07T10:50:06+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":"Create Multi Select Optionset using PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Introduction: Recently in one of our project, we had come acorss a requirement where we needed to create a PCF control for multi select optionset field with which user can visualize the values in a list form. In the new updates of PowerApps Component Framework, with the help of MultiSelectOptionSet type property, now we can","og:url":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/PCF-Control-ink.jpeg","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/PCF-Control-ink.jpeg","og:image:width":603,"og:image:height":368,"article:published_time":"2021-09-24T10:54:53+00:00","article:modified_time":"2021-10-07T05:20:06+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Create Multi Select Optionset using PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Introduction: Recently in one of our project, we had come acorss a requirement where we needed to create a PCF control for multi select optionset field with which user can visualize the values in a list form. In the new updates of PowerApps Component Framework, with the help of MultiSelectOptionSet type property, now we can","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/09\/PCF-Control-ink.jpeg","twitter:label1":"Written by","twitter:data1":"Tushar","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"29397","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":"BlogPosting","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:00:21","updated":"2025-07-04 08:59:21","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\/power-apps\/\" title=\"Microsoft PowerApps\">Microsoft PowerApps<\/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\/power-apps\/pcf\/\" title=\"PCF\">PCF<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCreate Multi Select Optionset using PCF Control\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Microsoft PowerApps","link":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/"},{"label":"PCF","link":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/"},{"label":"Create Multi Select Optionset using PCF Control","link":"https:\/\/www.inogic.com\/blog\/2021\/09\/create-multi-select-optionset-using-pcf-control\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/29397","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=29397"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/29397\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=29397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=29397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=29397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}