{"id":1060,"date":"2014-11-03T17:18:01","date_gmt":"2014-11-03T11:48:01","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=1060"},"modified":"2022-07-01T14:50:42","modified_gmt":"2022-07-01T09:20:42","slug":"how-to-handle-special-characters-in-fetch-xml","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/","title":{"rendered":"How to handle Special Characters in Fetch XML"},"content":{"rendered":"<p style=\"text-align: justify;\">Fetch XML, the easiest way to write complex queries to retrieve data by joining multiple entities.<\/p>\n<p style=\"text-align: justify;\">Though being the easiest, we were still stuck at a point where we didn&#8217;t know what to do. We were getting Invalid XML error.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-1061\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/11\/Invalid-XML-Error.jpg\" alt=\"Invalid XML Error\" width=\"496\" height=\"225\" \/><\/p>\n<p style=\"text-align: justify;\">For quite some time we were wondering what could have caused this. Below is our Fetch XML.<\/p>\n<p style=\"text-align: justify;\">What is this XML for? Through this XML, we are trying to find the Forecast record with the specified Forecast Name.<\/p>\n<p style=\"text-align: justify;\"><strong>Code:<\/strong><\/p>\n<p style=\"text-align: justify;\">string forecastName = &#8220;City &amp; Lights (Sample) December 2014&#8221;;<\/p>\n<p style=\"text-align: justify;\">string xml = @&#8221;&lt;fetch version=&#8217;1.0&#8242; output-format=&#8217;xml-platform&#8217; mapping=&#8217;logical&#8217; encoding=&#8217;Windows-1252&#8242; distinct=&#8217;false&#8217;&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;entity name=&#8217;new_forecast&#8217;&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;attribute name=&#8217;new_forecastid&#8217; \/&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;attribute name=&#8217;new_name&#8217; \/&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;order attribute=&#8217;new_name&#8217; descending=&#8217;false&#8217; \/&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;filter type=&#8217;and&#8217;&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#8220;&lt;condition attribute=&#8217;new_name&#8217; operator=&#8217;eq&#8217; value='&#8221; forecastName + &#8220;&#8216; \/&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;\/filter&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;\/entity&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;\/fetch&gt;&#8221;;<\/p>\n<p style=\"text-align: justify;\">Things were pretty good till the time we didn&#8217;t have any special character in the forecast name (For this demo we have hard coded the Forecast Name, in reality it is dynamically created). Then came the sore part, we got a Forecast Name with a special character &#8220;&amp;&#8221; in it. It took us around 45 minutes to figure out the reason of getting Invalid XML error.<\/p>\n<p style=\"text-align: justify;\">The reason for the Invalid XML error was the special character &#8220;&amp;&#8221;. We need to encode the special characters before using it in a Fetch XML.<\/p>\n<p style=\"text-align: justify;\">Then, we tried encoding the forecastName. We used the below assembly &amp; code to encode the forecastName.<\/p>\n<p style=\"text-align: justify;\"><strong>Assembly Used<\/strong>: System.Web<\/p>\n<p style=\"text-align: justify;\"><strong>Code Used: <\/strong>HttpUtility.HtmlEncode(forecastName)<\/p>\n<p style=\"text-align: justify;\">Now, we got the below error:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/11\/Business-Process-Error.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-1062\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/11\/Business-Process-Error.jpg\" alt=\"Business Process Error\" width=\"510\" height=\"236\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">While investigating this issue, we found that System.Web Assembly is not supported for Plug-In registered in Sandbox mode. And, HttpUtility.HtmlEncode(string) needs System.Web Assembly.<\/p>\n<p style=\"text-align: justify;\">Now, what? We are again stuck with special characters in Fetch XML, giving us Invalid XML.<\/p>\n<p style=\"text-align: justify;\">Hush! nothing to worry, we have WebUtility as our savior.<\/p>\n<p style=\"text-align: justify;\">What all things are we suppose to do now?<\/p>\n<p style=\"text-align: justify;\">Well, we just have to use a namespace and that`s it we are good to go.<\/p>\n<p style=\"text-align: justify;\"><strong>Namespace: <\/strong>System.Net<\/p>\n<p style=\"text-align: justify;\"><strong>Code Used: <\/strong>WebUtility.HtmlEncode(forecastName)<\/p>\n<p style=\"text-align: justify;\"><strong>\u00a0<\/strong><\/p>\n<p style=\"text-align: justify;\">Now, the final XML look like this,<\/p>\n<p style=\"text-align: justify;\">string xml = @&#8221;&lt;fetch version=&#8217;1.0&#8242; output-format=&#8217;xml-platform&#8217; mapping=&#8217;logical&#8217; encoding=&#8217;Windows-1252&#8242; distinct=&#8217;false&#8217;&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;entity name=&#8217;new_forecast&#8217;&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;attribute name=&#8217;new_forecastid&#8217; \/&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;attribute name=&#8217;new_name&#8217; \/&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0&#8220;&lt;order attribute=&#8217;new_name&#8217; descending=&#8217;false&#8217; \/&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;filter type=&#8217;and&#8217;&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">&#8220;&lt;condition attribute=&#8217;new_name&#8217; operator=&#8217;eq&#8217; value='&#8221; + WebUtility.HtmlEncode(forecastName) + &#8220;&#8216; \/&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;\/filter&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;\/entity&gt;&#8221; +<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;&lt;\/fetch&gt;&#8221;;<\/p>\n<p style=\"text-align: justify;\">The special characters in Fetch XML being the sore point once, now is very easy to tackle.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fetch XML, the easiest way to write complex queries to retrieve data by joining multiple entities. Though being the easiest, we were still stuck at a point where we didn&#8217;t know what to do. We were getting Invalid XML error. For quite some time we were wondering what could have caused this. Below is our\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/\">Read More: How to handle Special Characters in Fetch XML &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":[19,21,22,24],"tags":[269,795,823],"class_list":["post-1060","post","type-post","status-publish","format-standard","hentry","category-dynamics-crm","category-dynamics-crm-2013","category-dynamics-crm-2015","category-dynamics-crm-2016","tag-characters","tag-fetchxml","tag-forecastname"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"In this blog, we explored how to handle Special Characters in Fetch XML.\" \/>\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\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/\" \/>\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 handle Special Characters in Fetch XML - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"In this blog, we explored how to handle Special Characters in Fetch XML.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/11\/Invalid-XML-Error.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/11\/Invalid-XML-Error.jpg\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2014-11-03T11:48:01+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-07-01T09:20:42+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 handle Special Characters in Fetch XML - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In this blog, we explored how to handle Special Characters in Fetch XML.\" \/>\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\/2014\/11\/Invalid-XML-Error.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\\\/2014\\\/11\\\/how-to-handle-special-characters-in-fetch-xml\\\/#blogposting\",\"name\":\"How to handle Special Characters in Fetch XML - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"How to handle Special Characters in Fetch XML\",\"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\\\/2014\\\/11\\\/Invalid-XML-Error.jpg\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2014\\\/11\\\/how-to-handle-special-characters-in-fetch-xml\\\/#articleImage\"},\"datePublished\":\"2014-11-03T17:18:01+05:30\",\"dateModified\":\"2022-07-01T14:50:42+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2014\\\/11\\\/how-to-handle-special-characters-in-fetch-xml\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2014\\\/11\\\/how-to-handle-special-characters-in-fetch-xml\\\/#webpage\"},\"articleSection\":\"Dynamics CRM, Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016, Characters, FetchXML, forecastName\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2014\\\/11\\\/how-to-handle-special-characters-in-fetch-xml\\\/#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-2013\\\/#listItem\",\"name\":\"Dynamics CRM 2013\"},\"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-2013\\\/#listItem\",\"position\":3,\"name\":\"Dynamics CRM 2013\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2013\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2014\\\/11\\\/how-to-handle-special-characters-in-fetch-xml\\\/#listItem\",\"name\":\"How to handle Special Characters in Fetch XML\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/#listItem\",\"name\":\"Dynamics CRM\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2014\\\/11\\\/how-to-handle-special-characters-in-fetch-xml\\\/#listItem\",\"position\":4,\"name\":\"How to handle Special Characters in Fetch XML\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2013\\\/#listItem\",\"name\":\"Dynamics CRM 2013\"}}]},{\"@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\\\/2014\\\/11\\\/how-to-handle-special-characters-in-fetch-xml\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2014\\\/11\\\/how-to-handle-special-characters-in-fetch-xml\\\/#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\\\/2014\\\/11\\\/how-to-handle-special-characters-in-fetch-xml\\\/#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\\\/2014\\\/11\\\/how-to-handle-special-characters-in-fetch-xml\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2014\\\/11\\\/how-to-handle-special-characters-in-fetch-xml\\\/\",\"name\":\"How to handle Special Characters in Fetch XML - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"In this blog, we explored how to handle Special Characters in Fetch XML.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2014\\\/11\\\/how-to-handle-special-characters-in-fetch-xml\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"datePublished\":\"2014-11-03T17:18:01+05:30\",\"dateModified\":\"2022-07-01T14:50:42+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 handle Special Characters in Fetch XML - Microsoft Dynamics 365 CRM Tips and Tricks","description":"In this blog, we explored how to handle Special Characters in Fetch XML.","canonical_url":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/#blogposting","name":"How to handle Special Characters in Fetch XML - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"How to handle Special Characters in Fetch XML","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\/2014\/11\/Invalid-XML-Error.jpg","@id":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/#articleImage"},"datePublished":"2014-11-03T17:18:01+05:30","dateModified":"2022-07-01T14:50:42+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/#webpage"},"articleSection":"Dynamics CRM, Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016, Characters, FetchXML, forecastName"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/#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-2013\/#listItem","name":"Dynamics CRM 2013"},"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-2013\/#listItem","position":3,"name":"Dynamics CRM 2013","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2013\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/#listItem","name":"How to handle Special Characters in Fetch XML"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/#listItem","name":"Dynamics CRM"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/#listItem","position":4,"name":"How to handle Special Characters in Fetch XML","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2013\/#listItem","name":"Dynamics CRM 2013"}}]},{"@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\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/#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\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/#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\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/","name":"How to handle Special Characters in Fetch XML - Microsoft Dynamics 365 CRM Tips and Tricks","description":"In this blog, we explored how to handle Special Characters in Fetch XML.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"datePublished":"2014-11-03T17:18:01+05:30","dateModified":"2022-07-01T14:50:42+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 handle Special Characters in Fetch XML - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"In this blog, we explored how to handle Special Characters in Fetch XML.","og:url":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/11\/Invalid-XML-Error.jpg","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/11\/Invalid-XML-Error.jpg","article:published_time":"2014-11-03T11:48:01+00:00","article:modified_time":"2022-07-01T09:20:42+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"How to handle Special Characters in Fetch XML - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"In this blog, we explored how to handle Special Characters in Fetch XML.","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/11\/Invalid-XML-Error.jpg","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"1060","title":null,"description":"In this blog, we explored how to handle Special Characters in Fetch XML.","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 06:10:57","updated":"2025-07-03 23:15: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-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-2013\/\" title=\"Dynamics CRM 2013\">Dynamics CRM 2013<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to handle Special Characters in Fetch XML\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 2013","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2013\/"},{"label":"How to handle Special Characters in Fetch XML","link":"https:\/\/www.inogic.com\/blog\/2014\/11\/how-to-handle-special-characters-in-fetch-xml\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/1060","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=1060"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/1060\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=1060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=1060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=1060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}