{"id":13463,"date":"2018-11-21T17:52:00","date_gmt":"2018-11-21T12:22:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=13463"},"modified":"2022-09-02T16:43:24","modified_gmt":"2022-09-02T11:13:24","slug":"difference-between-xrm-page-getcontrolxyz-getvalue-and-xrm-page-getattributexyz-getvalue-in-dynamics-365-crm","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2018\/11\/difference-between-xrm-page-getcontrolxyz-getvalue-and-xrm-page-getattributexyz-getvalue-in-dynamics-365-crm\/","title":{"rendered":"Difference between Xrm.Page.getControl(&#8216;xyz&#8217;).getValue() and Xrm.Page.getAttribute(\u2018xyz&#8217;).getValue() in Dynamics 365 CRM"},"content":{"rendered":"<p style=\"text-align: justify;\">Many times while working in Dynamics 365 CRM we found small clues tips which sometimes becomes life saver for us. Today in this blog I will share one of such small tip.<\/p>\n<p style=\"text-align: justify;\">If we enter special characters like #<strong> $ % &amp; ( \u2018 <\/strong>in text input the GetControl &amp; Getattribute will give different result.<\/p>\n<p style=\"text-align: justify;\">Example:<\/p>\n<p style=\"text-align: justify;\"><strong>Xrm.Page.getControl(ikl_folderpath).getValue() returns \/folderpath<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>Xrm.Page.getAttribute(ikl_folderpath).getValue() returns \/folderpath#<\/strong><\/p>\n<p style=\"text-align: justify;\">Both the above statements return different results.<\/p>\n<p style=\"text-align: justify;\"><strong>GetControl(<\/strong>) method replaces the special characters<strong> # $ % \u00a0&amp; ( \u2018 \u00a0<\/strong>to blank if it is placed at the end whereas <strong>GetAttribute()<\/strong> method doesn\u2019t remove any special characters from the end and displays it as it is.<\/p>\n<p style=\"text-align: justify;\">Hope this helps!<\/p>\n<h2 style=\"text-align: left;\"><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:15px;margin-bottom:5px\"><div class=\"su-heading-inner\">Generate Your Own New Leads Within Microsoft Dynamics 365 CRM<\/div><\/div><\/h2>\n<p><em>Contact us for a <a href=\"https:\/\/www.maplytics.com\/maplytics-download\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">demo<\/a> to know more about how <a href=\"https:\/\/www.maplytics.com\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">Maplytics<\/a> can help you to generate new leads from within Microsoft Dynamics 365 CRM.<\/em><\/p>\n<p><em><a href=\"https:\/\/www.maplytics.com\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">Maplytics<\/a> is a 5-star rated, preferred business app on the <a href=\"https:\/\/appsource.microsoft.com\/en-us\/product\/dynamics-365\/inogic.f6f3c73f-29de-4fa8-a396-87ea8a07b6c4?tab=Overview\" target=\"_blank\" rel=\"noopener\">Microsoft AppSource<\/a> that is Certified for Microsoft Dynamics 365 (CfMD) and comes with powerful features like Appointment Planning, Sales Routing, Territory Management, Heat Maps, Geo-analytical Dashboards and more that empower organizations to add more value to their CRM data, improve sales &amp; service processes, and achieve high ROI.<\/em><\/p>\n<p><em>Get your <a href=\"https:\/\/www.maplytics.com\/maplytics-download\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">free trial<\/a> from our Website or <a href=\"https:\/\/appsource.microsoft.com\/en-us\/product\/dynamics-365\/inogic.f6f3c73f-29de-4fa8-a396-87ea8a07b6c4?tab=Overview\" target=\"_blank\" rel=\"noopener\">Microsoft AppSource<\/a>!<\/em><\/p>\n<p><em>&#8216;If data is the new oil, location intelligence is ??\u201d<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many times while working in Dynamics 365 CRM we found small clues tips which sometimes becomes life saver for us. Today in this blog I will share one of such small tip. If we enter special characters like # $ % &amp; ( \u2018 in text input the GetControl &amp; Getattribute will give different result.\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2018\/11\/difference-between-xrm-page-getcontrolxyz-getvalue-and-xrm-page-getattributexyz-getvalue-in-dynamics-365-crm\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":13465,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[11,16,18,19],"tags":[1857,1858],"class_list":["post-13463","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-controls","category-dynamics-365","category-dynamics-365-v9-2","category-dynamics-crm","tag-xrm-page-getattribute","tag-xrm-page-getcontrol"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/13463","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=13463"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/13463\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/13465"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=13463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=13463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=13463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}