{"id":15296,"date":"2019-04-03T11:56:35","date_gmt":"2019-04-03T11:56:35","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=15296"},"modified":"2019-04-03T11:56:35","modified_gmt":"2019-04-03T11:56:35","slug":"how-to-use-htmlencode-functionality-in-dynamics-365-crm","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/","title":{"rendered":"How to use htmlEncode functionality in Dynamics 365 CRM"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p>Recently we were facing an issue where the presence of special character in string hindered the search of record in Dynamic CRM web and UCI. After working on this issue it was found that there are some more special characters which does not work like:\u00a0 <strong>&amp; \u201c \u2018\u00a0 &lt; &gt; + ;<\/strong> etc.<\/p>\n<p>Even encoding that string by encodeURIComponent and adding it to FetchXml resulted in display of errors in web and UCI, such as:<\/p>\n<ul>\n<li>Invalid Xml.<\/li>\n<li>URIError: URI malformed<\/li>\n<li>http Error 500<\/li>\n<\/ul>\n<p>To resolve this issue in Dynamic CRM v9, we finally made use of htmlEncode.<\/p>\n<p>Xrm.Encoding.htmlEncode(arg)<\/p>\n<p>Pass the record name in htmlEncode and use the resultant string to search record. There will be no further hindrance in finding the respective record in Dynamics CRM.<\/p>\n<h2>Fetchxml without htmlEncode:<\/h2>\n<p>&lt;fetch version=&#8217;1.0&#8242; output-format=&#8217;xml-platform&#8217; mapping=&#8217;logical&#8217; distinct=&#8217;false&#8217;&gt;<\/p>\n<p>&lt;entity name=&#8217;new_projectdetails&#8217;&gt;<\/p>\n<p>&lt;all-attributes \/&gt;&lt;filter type=&#8217;and&#8217;&gt;<\/p>\n<p>&lt;condition attribute=&#8217;ikl_name&#8217; operator=&#8217;eq&#8217; value=&#8217;Ben &amp; Jerry\u2019s Leads&#8217; \/&gt;<\/p>\n<p>&lt;condition attribute=&#8217;statecode&#8217; operator=&#8217;eq&#8217; value=&#8217;0&#8217;\/&gt;<\/p>\n<p>&lt;\/filter&gt;<\/p>\n<p>&lt;\/entity&gt;<\/p>\n<p>&lt;\/fetch&gt;<\/p>\n<h2>FetchXml with htmlEncode:<\/h2>\n<p>&lt;fetch version=&#8217;1.0&#8242; output-format=&#8217;xml-platform&#8217; mapping=&#8217;logical&#8217; distinct=&#8217;false&#8217;&gt;<\/p>\n<p>&lt;entity name=&#8217;new_projectdetails&#8217;&gt;<\/p>\n<p>&lt;all-attributes \/&gt;&lt;filter type=&#8217;and&#8217;&gt;<\/p>\n<p>&lt;condition attribute=&#8217;ikl_name&#8217; operator=&#8217;eq&#8217; value=&#8217;Ben &amp;#38; Jerry&amp;#39;s Leads&#8217; \/&gt;<\/p>\n<p>&lt;condition attribute=&#8217;statecode&#8217; operator=&#8217;eq&#8217; value=&#8217;0&#8217;\/&gt;<\/p>\n<p>&lt;\/filter&gt;<\/p>\n<p>&lt;\/entity&gt;<\/p>\n<p>&lt;\/fetch&gt;<\/p>\n<p>But in dynamics CRM 8.2 we can\u2019t use htmlEncode to encode the string. To make this possible we have to write one function which converts the special character present in string.<\/p>\n<p>This function in htmlEncode will convert the special character into the Html Number. Html Number is combination of &amp;# and decimal number of that character and ;<\/p>\n<h2>For example:<\/h2>\n<p>For <strong>&amp;<\/strong> special character decimal number is <strong>38<\/strong>, so htmlEncode for <strong>&amp;<\/strong> is <strong>&amp;#38;<\/strong><\/p>\n<p>So to convert the special character to html number, we have to write the below function:<\/p>\n<p>function handleSpecialChar(string) {<\/p>\n<p>try {<\/p>\n<p>return string.replace(\/[\\x26\\x2B\\x3B\\&lt;&gt;'&#8221;]\/g, function (r) { return &#8220;&amp;#&#8221; + r.charCodeAt(0) + &#8220;;&#8221; })<\/p>\n<p>} catch (e) {<\/p>\n<p>showAlert(&#8220;handleSpecialChar Error: &#8221; + e || e.message || e.description);<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>Use the above function to encode the special character in string.<\/p>\n<p>For example: <a href=\"https:\/\/en.wikipedia.org\/wiki\/Ben_%26_Jerry%27s\" target=\"_blank\" rel=\"noopener noreferrer\">Ben &amp; Jerry&#8217;s<\/a> Lead<\/p>\n<p>String htmlEncode is: \u00a0 &#8216;Ben &amp;#38; Jerry&amp;#39;s Leads<\/p>\n<p>Now pass the resultant string in FetchXml to search record in Dynamics CRM.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>In the presence of special characters in string you can use htmlEncode to search records in Dynamics 365 CRM.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-pack\/attach-2-dynamics-365-crm-upload-multiple-files-sharepoint-cloud-storage\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-15297\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/04\/Attach2Dynamics.png\" alt=\"Attach2Dynamics\" width=\"841\" height=\"259\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Recently we were facing an issue where the presence of special character in string hindered the search of record in Dynamic CRM web and UCI. After working on this issue it was found that there are some more special characters which does not work like:\u00a0 &amp; \u201c \u2018\u00a0 &lt; &gt; + ; etc. Even\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/\">Read More: How to use htmlEncode functionality in Dynamics 365 CRM &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":15298,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,18,19],"tags":[897],"class_list":["post-15296","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-dynamics-365-v9-2","category-dynamics-crm","tag-htmlencode-functionality-dynamics-365-crm"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Introduction Recently we were facing an issue where the presence of special character in string hindered the search of record in Dynamic CRM web and UCI. After working on this issue it was found that there are some more special characters which does not work like: &amp; \u201c \u2018 &lt; &gt; + ; etc. Even\" \/>\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\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/\" \/>\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=\"How to use htmlEncode functionality in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Introduction Recently we were facing an issue where the presence of special character in string hindered the search of record in Dynamic CRM web and UCI. After working on this issue it was found that there are some more special characters which does not work like: &amp; \u201c \u2018 &lt; &gt; + ; etc. Even\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/04\/Attach2Dynamics.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/04\/Attach2Dynamics.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-04-03T11:56:35+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-04-03T11:56:35+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=\"How to use htmlEncode functionality in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Introduction Recently we were facing an issue where the presence of special character in string hindered the search of record in Dynamic CRM web and UCI. After working on this issue it was found that there are some more special characters which does not work like: &amp; \u201c \u2018 &lt; &gt; + ; etc. Even\" \/>\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\/04\/Attach2Dynamics.png\" \/>\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\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/#blogposting\",\"name\":\"How to use htmlEncode functionality in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"How to use htmlEncode functionality in Dynamics 365 CRM\",\"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\\\/04\\\/How-to-use-htmlEncode-functionality-in-Dynamics-CRM-1.png\",\"width\":150,\"height\":140},\"datePublished\":\"2019-04-03T11:56:35+05:30\",\"dateModified\":\"2019-04-03T11:56:35+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/#webpage\"},\"articleSection\":\"Dynamics 365, Dynamics 365 v9, Dynamics CRM, htmlEncode functionality Dynamics 365 CRM\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/#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-365\\\/#listItem\",\"name\":\"Dynamics 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"position\":2,\"name\":\"Dynamics 365\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/#listItem\",\"name\":\"How to use htmlEncode functionality in Dynamics 365 CRM\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/#listItem\",\"position\":3,\"name\":\"How to use htmlEncode functionality in Dynamics 365 CRM\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"name\":\"Dynamics 365\"}}]},{\"@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\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/#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\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/#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\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/\",\"name\":\"How to use htmlEncode functionality in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Introduction Recently we were facing an issue where the presence of special character in string hindered the search of record in Dynamic CRM web and UCI. After working on this issue it was found that there are some more special characters which does not work like: & \\u201c \\u2018 < > + ; etc. Even\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/#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\\\/04\\\/How-to-use-htmlEncode-functionality-in-Dynamics-CRM-1.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/#mainImage\",\"width\":150,\"height\":140},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/04\\\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\\\/#mainImage\"},\"datePublished\":\"2019-04-03T11:56:35+05:30\",\"dateModified\":\"2019-04-03T11:56:35+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":"How to use htmlEncode functionality in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction Recently we were facing an issue where the presence of special character in string hindered the search of record in Dynamic CRM web and UCI. After working on this issue it was found that there are some more special characters which does not work like: & \u201c \u2018 < > + ; etc. Even","canonical_url":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/#blogposting","name":"How to use htmlEncode functionality in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"How to use htmlEncode functionality in Dynamics 365 CRM","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\/04\/How-to-use-htmlEncode-functionality-in-Dynamics-CRM-1.png","width":150,"height":140},"datePublished":"2019-04-03T11:56:35+05:30","dateModified":"2019-04-03T11:56:35+05:30","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/#webpage"},"articleSection":"Dynamics 365, Dynamics 365 v9, Dynamics CRM, htmlEncode functionality Dynamics 365 CRM"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/#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-365\/#listItem","name":"Dynamics 365"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","position":2,"name":"Dynamics 365","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/#listItem","name":"How to use htmlEncode functionality in Dynamics 365 CRM"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/#listItem","position":3,"name":"How to use htmlEncode functionality in Dynamics 365 CRM","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","name":"Dynamics 365"}}]},{"@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\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/#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\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/#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\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/","name":"How to use htmlEncode functionality in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction Recently we were facing an issue where the presence of special character in string hindered the search of record in Dynamic CRM web and UCI. After working on this issue it was found that there are some more special characters which does not work like: & \u201c \u2018 < > + ; etc. Even","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/#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\/04\/How-to-use-htmlEncode-functionality-in-Dynamics-CRM-1.png","@id":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/#mainImage","width":150,"height":140},"primaryImageOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/#mainImage"},"datePublished":"2019-04-03T11:56:35+05:30","dateModified":"2019-04-03T11:56:35+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":"How to use htmlEncode functionality in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Introduction Recently we were facing an issue where the presence of special character in string hindered the search of record in Dynamic CRM web and UCI. After working on this issue it was found that there are some more special characters which does not work like: &amp; \u201c \u2018 &lt; &gt; + ; etc. Even","og:url":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/04\/Attach2Dynamics.png","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/04\/Attach2Dynamics.png","article:published_time":"2019-04-03T11:56:35+00:00","article:modified_time":"2019-04-03T11:56:35+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"How to use htmlEncode functionality in Dynamics 365 CRM - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Introduction Recently we were facing an issue where the presence of special character in string hindered the search of record in Dynamic CRM web and UCI. After working on this issue it was found that there are some more special characters which does not work like: &amp; \u201c \u2018 &lt; &gt; + ; etc. Even","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/04\/Attach2Dynamics.png","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"15296","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:08:00","updated":"2025-07-04 06:00:03","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-365\/\" title=\"Dynamics 365\">Dynamics 365<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to use htmlEncode functionality in Dynamics 365 CRM\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Dynamics 365","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/"},{"label":"How to use htmlEncode functionality in Dynamics 365 CRM","link":"https:\/\/www.inogic.com\/blog\/2019\/04\/how-to-use-htmlencode-functionality-in-dynamics-365-crm\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/15296","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=15296"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/15296\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/15298"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=15296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=15296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=15296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}