{"id":54,"date":"2012-09-10T08:33:00","date_gmt":"2012-09-10T03:03:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=54"},"modified":"2012-09-10T08:33:00","modified_gmt":"2012-09-10T03:03:00","slug":"phone-formating-in-ssrs-report","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/","title":{"rendered":"Phone Formating in SSRS report"},"content":{"rendered":"<div dir=\"ltr\" trbidi=\"on\"><span> <\/span><\/p>\n<div><span><span>Many a times\u00a0there\u00a0had been requirements\u00a0to format the CRM phone number in the SSRS report in following format.<\/span><\/span><\/div>\n<p><span> <\/span><\/p>\n<div><a href=\"http:\/\/1.bp.blogspot.com\/-rxHwdj4BUw4\/UE2j3LCDK8I\/AAAAAAAABWA\/LryC20Jm6jw\/s1600\/Untitled.jpg\" imageanchor=\"1\"><span><img decoding=\"async\" border=\"0\" height=\"61\" src=\"http:\/\/1.bp.blogspot.com\/-rxHwdj4BUw4\/UE2j3LCDK8I\/AAAAAAAABWA\/LryC20Jm6jw\/s320\/Untitled.jpg\" width=\"320\"><\/span><\/a><\/div>\n<p><span> <\/span><\/p>\n<div><span lang=\"EN-IN\"><span><span>We tried to achieve this by creating 12 text boxes and in each textbox we applied the below logic in the expression.<\/p>\n<p><\/span><\/span><\/span><\/div>\n<p><span> <\/span><\/p>\n<div><b><i><span lang=\"EN-IN\"><span><span>= IIF(Fields!telephone1.Value.toString().Length>=1, GetChar(Fields!telephone1.Value.toString(),1), \u201c\u201d)<\/p>\n<p><\/span><\/span><\/span><\/i><\/b><\/div>\n<p><span> <\/span><\/p>\n<div><span lang=\"EN-IN\"><span><span>It works successfully when the length of phone number is equal to 10. But it fails when the length of phone number is less than 10\u00a0and you will get an error while running this report.<\/p>\n<p><\/span><\/span><\/span><\/div>\n<p><span> <\/span><\/p>\n<div><span lang=\"EN-IN\"><span><span>To resolve this issue we found\u00a0a work around for this.<\/p>\n<p><\/span><\/span><\/span><\/div>\n<p><span> <\/span><\/p>\n<div><span lang=\"EN-IN\"><span><span>First you need to format the data using the SQL query and PAD the spaces into the field. As given below.<\/p>\n<p><\/span><\/span><\/span><\/div>\n<p><span> <\/span><\/p>\n<div><b><span lang=\"EN-IN\"><em><span><span>LEFT(ISNULL(telephone1, &#8221;) + &#8216;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8216;, 10)<\/p>\n<p><\/span><\/span><\/em><\/span><\/b><\/div>\n<p><span> <\/span><\/p>\n<div><span lang=\"EN-IN\"><span><span>The above statement will format the telephone1 attribute. If the user enters errorneuos or junk data into the telephone1 field like \u201c<b>99<\/b>\u201d, then the above statement will return the value \u201c<b>99<\/b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u201d, i.e. 99 + additional 8 spaces . And in the textboxes expressions you just need to write the following expressions without checking the IIF condition.<\/p>\n<p><\/span><\/span><\/span><\/div>\n<p><span> <\/span><br \/><span><\/p>\n<div><b><span lang=\"EN-IN\">= GetChar(Fields!telephone1.Value.toString(),1)<\/p>\n<p><\/span><\/b><\/div>\n<p><span> <\/span><\/p>\n<div><b><span lang=\"EN-IN\">= GetChar(Fields!telephone1.Value.toString(),2)<\/span><\/b><b><span lang=\"EN-IN\"><\/p>\n<p><\/span><\/b><\/div>\n<p><span> <\/span><\/p>\n<div><b><span lang=\"EN-IN\">= GetChar(Fields!telephone1.Value.toString(),3)<\/span><\/b><b><span lang=\"EN-IN\"><\/p>\n<p><\/span><\/b><\/div>\n<p><span> <\/span><\/p>\n<div><b><span lang=\"EN-IN\">= GetChar(Fields!telephone1.Value.toString(),4)<\/span><\/b><b><span lang=\"EN-IN\"><\/p>\n<p><\/span><\/b><\/div>\n<p><span>   <\/span><\/span><span lang=\"EN-IN\"><\/p>\n<p><span><\/span><\/p>\n<p><\/span><br \/><span> <\/span><\/p>\n<div><span lang=\"EN-IN\"><span><span>Hope this helps!<\/p>\n<p><\/span><\/span><\/span><\/div>\n<p><span> <\/span>\u00a0<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Many a times\u00a0there\u00a0had been requirements\u00a0to format the CRM phone number in the SSRS report in following format. We tried to achieve this by creating 12 text boxes and in each textbox we applied the below logic in the expression. = IIF(Fields!telephone1.Value.toString().Length>=1, GetChar(Fields!telephone1.Value.toString(),1), \u201c\u201d) It works successfully when the length of phone number is equal to\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/\">Read More: Phone Formating in SSRS report &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,58],"tags":[829,1306,1701],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-dynamics-crm","category-ssrs-reports","tag-formatiing","tag-phone-number","tag-telephone1"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Many a times there had been requirements to format the CRM phone number in the SSRS report in following format. We tried to achieve this by creating 12 text boxes and in each textbox we applied the below logic in the expression. = IIF(Fields!telephone1.Value.toString().Length&gt;=1, GetChar(Fields!telephone1.Value.toString(),1), \u201c\u201d) It works successfully when the length of phone number is equal to\" \/>\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\/2012\/09\/phone-formating-in-ssrs-report\/\" \/>\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=\"Phone Formating in SSRS report - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Many a times there had been requirements to format the CRM phone number in the SSRS report in following format. We tried to achieve this by creating 12 text boxes and in each textbox we applied the below logic in the expression. = IIF(Fields!telephone1.Value.toString().Length&gt;=1, GetChar(Fields!telephone1.Value.toString(),1), \u201c\u201d) It works successfully when the length of phone number is equal to\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/1.bp.blogspot.com\/-rxHwdj4BUw4\/UE2j3LCDK8I\/AAAAAAAABWA\/LryC20Jm6jw\/s320\/Untitled.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/1.bp.blogspot.com\/-rxHwdj4BUw4\/UE2j3LCDK8I\/AAAAAAAABWA\/LryC20Jm6jw\/s320\/Untitled.jpg\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2012-09-10T03:03:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2012-09-10T03:03:00+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=\"Phone Formating in SSRS report - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Many a times there had been requirements to format the CRM phone number in the SSRS report in following format. We tried to achieve this by creating 12 text boxes and in each textbox we applied the below logic in the expression. = IIF(Fields!telephone1.Value.toString().Length&gt;=1, GetChar(Fields!telephone1.Value.toString(),1), \u201c\u201d) It works successfully when the length of phone number is equal to\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"http:\/\/1.bp.blogspot.com\/-rxHwdj4BUw4\/UE2j3LCDK8I\/AAAAAAAABWA\/LryC20Jm6jw\/s320\/Untitled.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=\"1 minute\" \/>\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\\\/2012\\\/09\\\/phone-formating-in-ssrs-report\\\/#blogposting\",\"name\":\"Phone Formating in SSRS report - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Phone Formating in SSRS report\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/1.bp.blogspot.com\\\/-rxHwdj4BUw4\\\/UE2j3LCDK8I\\\/AAAAAAAABWA\\\/LryC20Jm6jw\\\/s320\\\/Untitled.jpg\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2012\\\/09\\\/phone-formating-in-ssrs-report\\\/#articleImage\"},\"datePublished\":\"2012-09-10T08:33:00+05:30\",\"dateModified\":\"2012-09-10T08:33:00+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2012\\\/09\\\/phone-formating-in-ssrs-report\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2012\\\/09\\\/phone-formating-in-ssrs-report\\\/#webpage\"},\"articleSection\":\"Dynamics CRM, SSRS Reports, formatiing, phone number, telephone1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2012\\\/09\\\/phone-formating-in-ssrs-report\\\/#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\\\/2012\\\/09\\\/phone-formating-in-ssrs-report\\\/#listItem\",\"name\":\"Phone Formating in SSRS report\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2012\\\/09\\\/phone-formating-in-ssrs-report\\\/#listItem\",\"position\":3,\"name\":\"Phone Formating in SSRS report\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/#listItem\",\"name\":\"Dynamics CRM\"}}]},{\"@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\\\/2012\\\/09\\\/phone-formating-in-ssrs-report\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2012\\\/09\\\/phone-formating-in-ssrs-report\\\/#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\\\/2012\\\/09\\\/phone-formating-in-ssrs-report\\\/#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\\\/2012\\\/09\\\/phone-formating-in-ssrs-report\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2012\\\/09\\\/phone-formating-in-ssrs-report\\\/\",\"name\":\"Phone Formating in SSRS report - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Many a times there had been requirements to format the CRM phone number in the SSRS report in following format. We tried to achieve this by creating 12 text boxes and in each textbox we applied the below logic in the expression. = IIF(Fields!telephone1.Value.toString().Length>=1, GetChar(Fields!telephone1.Value.toString(),1), \\u201c\\u201d) It works successfully when the length of phone number is equal to\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2012\\\/09\\\/phone-formating-in-ssrs-report\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"datePublished\":\"2012-09-10T08:33:00+05:30\",\"dateModified\":\"2012-09-10T08:33:00+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":"Phone Formating in SSRS report - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Many a times there had been requirements to format the CRM phone number in the SSRS report in following format. We tried to achieve this by creating 12 text boxes and in each textbox we applied the below logic in the expression. = IIF(Fields!telephone1.Value.toString().Length>=1, GetChar(Fields!telephone1.Value.toString(),1), \u201c\u201d) It works successfully when the length of phone number is equal to","canonical_url":"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/#blogposting","name":"Phone Formating in SSRS report - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Phone Formating in SSRS report","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"http:\/\/1.bp.blogspot.com\/-rxHwdj4BUw4\/UE2j3LCDK8I\/AAAAAAAABWA\/LryC20Jm6jw\/s320\/Untitled.jpg","@id":"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/#articleImage"},"datePublished":"2012-09-10T08:33:00+05:30","dateModified":"2012-09-10T08:33:00+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/#webpage"},"articleSection":"Dynamics CRM, SSRS Reports, formatiing, phone number, telephone1"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/#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\/2012\/09\/phone-formating-in-ssrs-report\/#listItem","name":"Phone Formating in SSRS report"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/#listItem","position":3,"name":"Phone Formating in SSRS report","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/#listItem","name":"Dynamics CRM"}}]},{"@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\/2012\/09\/phone-formating-in-ssrs-report\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/#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\/2012\/09\/phone-formating-in-ssrs-report\/#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\/2012\/09\/phone-formating-in-ssrs-report\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/","name":"Phone Formating in SSRS report - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Many a times there had been requirements to format the CRM phone number in the SSRS report in following format. We tried to achieve this by creating 12 text boxes and in each textbox we applied the below logic in the expression. = IIF(Fields!telephone1.Value.toString().Length>=1, GetChar(Fields!telephone1.Value.toString(),1), \u201c\u201d) It works successfully when the length of phone number is equal to","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"datePublished":"2012-09-10T08:33:00+05:30","dateModified":"2012-09-10T08:33:00+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":"Phone Formating in SSRS report - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Many a times there had been requirements to format the CRM phone number in the SSRS report in following format. We tried to achieve this by creating 12 text boxes and in each textbox we applied the below logic in the expression. = IIF(Fields!telephone1.Value.toString().Length&gt;=1, GetChar(Fields!telephone1.Value.toString(),1), \u201c\u201d) It works successfully when the length of phone number is equal to","og:url":"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/","og:image":"https:\/\/1.bp.blogspot.com\/-rxHwdj4BUw4\/UE2j3LCDK8I\/AAAAAAAABWA\/LryC20Jm6jw\/s320\/Untitled.jpg","og:image:secure_url":"https:\/\/1.bp.blogspot.com\/-rxHwdj4BUw4\/UE2j3LCDK8I\/AAAAAAAABWA\/LryC20Jm6jw\/s320\/Untitled.jpg","article:published_time":"2012-09-10T03:03:00+00:00","article:modified_time":"2012-09-10T03:03:00+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Phone Formating in SSRS report - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Many a times there had been requirements to format the CRM phone number in the SSRS report in following format. We tried to achieve this by creating 12 text boxes and in each textbox we applied the below logic in the expression. = IIF(Fields!telephone1.Value.toString().Length&gt;=1, GetChar(Fields!telephone1.Value.toString(),1), \u201c\u201d) It works successfully when the length of phone number is equal to","twitter:creator":"@inogic","twitter:image":"http:\/\/1.bp.blogspot.com\/-rxHwdj4BUw4\/UE2j3LCDK8I\/AAAAAAAABWA\/LryC20Jm6jw\/s320\/Untitled.jpg","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"1 minute"},"aioseo_meta_data":{"post_id":"54","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 06:01:50","updated":"2025-07-03 22:15:09","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\tPhone Formating in SSRS report\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":"Phone Formating in SSRS report","link":"https:\/\/www.inogic.com\/blog\/2012\/09\/phone-formating-in-ssrs-report\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/54","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=54"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}