{"id":41587,"date":"2025-06-23T15:46:18","date_gmt":"2025-06-23T10:16:18","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=41587"},"modified":"2025-06-23T15:46:18","modified_gmt":"2025-06-23T10:16:18","slug":"retrieving-masked-field-values-programmatically-in-dynamics-365","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/","title":{"rendered":"Retrieving Masked Field Values Programmatically in Dynamics 365"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone size-full wp-image-41590\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365.png\" alt=\"Retrieving Masked Field Values Programmatically in Dynamics 365\" width=\"1925\" height=\"1100\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365.png 1925w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365-300x171.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365-1024x585.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365-768x439.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365-1536x878.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365-660x377.png 660w\" sizes=\"(max-width: 1925px) 100vw, 1925px\" \/><\/p>\n<p>Are you working on a Dynamics 365 Customer Engagement (CE) project and struggling to integrate a payment system that requires access to sensitive data\u2014like a customer\u2019s full bank account number?<\/p>\n<p>You\u2019re not alone.<\/p>\n<p>Imagine this: you&#8217;re developing with backend plugins, operating under elevated privileges, and fully expecting the System Admin service to give you unrestricted access. But instead, you hit a wall\u2014no matter what you try, the masked field remains partially hidden.<\/p>\n<p>Sound familiar?<\/p>\n<p>That&#8217;s because Dynamics 365 enforces data masking even in backend code, leaving many developers puzzled and looking for solutions. Let&#8217;s dive into what\u2019s really going on and how to approach this challenge.<\/p>\n<p><strong>The Issue: Getting Only Masked Values<\/strong><\/p>\n<p>In many cases, the customer\u2019s bank account number might be stored on the account entity. But when the user runs your payment processing plugin, you\u2019re probably seeing field values like this: `****5678`.<\/p>\n<p>Frustrating, right?<\/p>\n<p>Despite having backend access, the field remains masked, making it impossible to retrieve the full value directly, even through the system admin service.<\/p>\n<p>Here\u2019s what the code looked like:<\/p>\n<pre class=\"lang:css gutter:true start:1\">Entity account = service.Retrieve(\"account\", accountId, new ColumnSet(\"new_bankaccount\"));string accountNumber = account[\"new_bankaccount\"].ToString(); \/\/ returns ****5678<\/pre>\n<p>This was clearly a problem\u2014the <strong>payment gateway needs the actual account number<\/strong>, not a masked one. As a result, the entire payment workflow was failing.<\/p>\n<p>What You Should Know About Field Masking in Dynamics 365:<\/p>\n<p>Through your own testing and a deep dive into the documentation, you\u2019ll likely uncover a few key insights that explain why sensitive fields\u2014like bank account numbers\u2014stay masked, even when accessed through backend code.<\/p>\n<ol>\n<li><strong>Masking applies globally<\/strong> \u2013 It\u2019s not just a front-end\/UI feature. Even backend processes like plugins retrieve masked values.<\/li>\n<li><strong>Plugins run in user context<\/strong> \u2013 So if the user doesn&#8217;t have permission to view unmasked data, your plugin won\u2019t either.<\/li>\n<li><strong>Automation can break silently<\/strong> \u2013 Masked fields can cause critical background processes (like payments, validations, or data exports) to fail or behave unexpectedly.<\/li>\n<\/ol>\n<p><strong>The Workaround: How to Access the Full Value<\/strong><\/p>\n<p>After extensive trial and error, two effective methods were identified, depending on the context in which the data is being accessed.<\/p>\n<ol>\n<li><strong> For APIs, JavaScript<\/strong><\/li>\n<\/ol>\n<p>If you&#8217;re accessing data from the front-end (i.e form scripts), you can retrieve unmasked values of any masked fields by adding a special query flag:<\/p>\n<pre class=\"lang:css gutter:true start:1\">GET \/api\/data\/v9.2\/accounts(GUID)?$select=new_bankaccount,new_creditcard,new_customfield&amp;UnMaskedData=true<\/pre>\n<p><strong>Note: If you want to unmask all the configured fields, it can be done using the same query\u2014there&#8217;s no need to add any additional attributes.<\/strong><\/p>\n<p><strong>Important: This works only on the front-end (JavaScript, Web API, etc.). It does not apply to server-side code such as plugins, workflows, or custom C# code \u2014 those still return masked values unless accessed using system context.<\/strong><\/p>\n<ol start=\"2\">\n<li><strong> For Plugins and Workflows (System Context)<\/strong><\/li>\n<\/ol>\n<p>Since plugins run in a specific user context, you need to switch to <strong>SYSTEM Context<\/strong> by creating a service using <strong>CreateOrganizationService(null)<\/strong>. This essentially executes the call as the <strong>SYSTEM<\/strong> user itself.<\/p>\n<p>Here\u2019s how to retrieve the unmasked value inside the plugin:<\/p>\n<pre class=\"lang:css gutter:true start:1\">public Entity GetUnmaskedBankDetails(Guid accountId, IOrganizationServiceFactory factory)\r\n{\r\n    \/\/ Create system-level service\r\n    IOrganizationService sysService = factory.CreateOrganizationService(null);\r\n    return sysService.Retrieve(\"account\", accountId, new ColumnSet(\"new_bankaccount\"));\r\n}\r\npublic void Execute(IServiceProvider serviceProvider)\r\n{\r\n    var context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));\r\n    var factory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));\r\n\r\n    Entity account = GetUnmaskedBankDetails(context.PrimaryEntityId, factory);\r\n    string fullAccountNumber = account[\"new_bankaccount\"].ToString();\r\n\r\n    if (!ProcessPayment(fullAccountNumber))\r\n    {\r\n        throw new InvalidPluginExecutionException(\"Payment processing failed.\");\r\n    }\r\n}<\/pre>\n<p>This approach gives access to the <strong>actual bank account number<\/strong>, and the payment processing system started working as expected.<\/p>\n<p><strong>Conclusion:<\/strong><\/p>\n<p>When working with masked fields in Dynamics 365, standard access methods won\u2019t reveal full values.<br \/>\nUse ?UnMaskedData=true for front-end\/API calls and CreateOrganizationService(null) for backend plugins.<br \/>\nThese techniques ensure secure access to unmasked data without breaching security protocols.<br \/>\nAlways apply them thoughtfully to maintain compliance and data integrity.<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you working on a Dynamics 365 Customer Engagement (CE) project and struggling to integrate a payment system that requires access to sensitive data\u2014like a customer\u2019s full bank account number? You\u2019re not alone. Imagine this: you&#8217;re developing with backend plugins, operating under elevated privileges, and fully expecting the System Admin service to give you unrestricted\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/\">Read More: Retrieving Masked Field Values Programmatically in Dynamics 365 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,2361],"tags":[533],"class_list":["post-41587","post","type-post","status-publish","format-standard","hentry","category-dynamics-365","category-technical","tag-dynamics-365"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Are you working on a Dynamics 365 Customer Engagement (CE) project and struggling to integrate a payment system that requires access to sensitive data\u2014like a customer\u2019s full bank account number? You\u2019re not alone. Imagine this: you&#039;re developing with backend plugins, operating under elevated privileges, and fully expecting the System Admin service to give you unrestricted\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Sam Kumar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/\" \/>\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=\"Retrieving Masked Field Values Programmatically in Dynamics 365 - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Are you working on a Dynamics 365 Customer Engagement (CE) project and struggling to integrate a payment system that requires access to sensitive data\u2014like a customer\u2019s full bank account number? You\u2019re not alone. Imagine this: you&#039;re developing with backend plugins, operating under elevated privileges, and fully expecting the System Admin service to give you unrestricted\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1925\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1100\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-06-23T10:16:18+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-06-23T10:16:18+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=\"Retrieving Masked Field Values Programmatically in Dynamics 365 - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Are you working on a Dynamics 365 Customer Engagement (CE) project and struggling to integrate a payment system that requires access to sensitive data\u2014like a customer\u2019s full bank account number? You\u2019re not alone. Imagine this: you&#039;re developing with backend plugins, operating under elevated privileges, and fully expecting the System Admin service to give you unrestricted\" \/>\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\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365.png\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Sam Kumar\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"3 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\\\/2025\\\/06\\\/retrieving-masked-field-values-programmatically-in-dynamics-365\\\/#blogposting\",\"name\":\"Retrieving Masked Field Values Programmatically in Dynamics 365 - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Retrieving Masked Field Values Programmatically in Dynamics 365\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2025\\\/06\\\/retrieving-masked-field-values-programmatically-in-dynamics-365\\\/#articleImage\",\"width\":1925,\"height\":1100,\"caption\":\"Retrieving Masked Field Values Programmatically in Dynamics 365\"},\"datePublished\":\"2025-06-23T15:46:18+05:30\",\"dateModified\":\"2025-06-23T15:46:18+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2025\\\/06\\\/retrieving-masked-field-values-programmatically-in-dynamics-365\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2025\\\/06\\\/retrieving-masked-field-values-programmatically-in-dynamics-365\\\/#webpage\"},\"articleSection\":\"Dynamics 365, Technical, Dynamics 365\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2025\\\/06\\\/retrieving-masked-field-values-programmatically-in-dynamics-365\\\/#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\\\/2025\\\/06\\\/retrieving-masked-field-values-programmatically-in-dynamics-365\\\/#listItem\",\"name\":\"Retrieving Masked Field Values Programmatically in Dynamics 365\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2025\\\/06\\\/retrieving-masked-field-values-programmatically-in-dynamics-365\\\/#listItem\",\"position\":3,\"name\":\"Retrieving Masked Field Values Programmatically in Dynamics 365\",\"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\\\/2025\\\/06\\\/retrieving-masked-field-values-programmatically-in-dynamics-365\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2025\\\/06\\\/retrieving-masked-field-values-programmatically-in-dynamics-365\\\/#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\\\/sam-kumar\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/\",\"name\":\"Sam Kumar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2025\\\/06\\\/retrieving-masked-field-values-programmatically-in-dynamics-365\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ede4386d06665d3d5ee2ecccb6c36df60385d561e317372bd89dffb7e4b1de2f?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Sam Kumar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2025\\\/06\\\/retrieving-masked-field-values-programmatically-in-dynamics-365\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2025\\\/06\\\/retrieving-masked-field-values-programmatically-in-dynamics-365\\\/\",\"name\":\"Retrieving Masked Field Values Programmatically in Dynamics 365 - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Are you working on a Dynamics 365 Customer Engagement (CE) project and struggling to integrate a payment system that requires access to sensitive data\\u2014like a customer\\u2019s full bank account number? You\\u2019re not alone. Imagine this: you're developing with backend plugins, operating under elevated privileges, and fully expecting the System Admin service to give you unrestricted\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2025\\\/06\\\/retrieving-masked-field-values-programmatically-in-dynamics-365\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/#author\"},\"datePublished\":\"2025-06-23T15:46:18+05:30\",\"dateModified\":\"2025-06-23T15:46:18+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":"Retrieving Masked Field Values Programmatically in Dynamics 365 - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Are you working on a Dynamics 365 Customer Engagement (CE) project and struggling to integrate a payment system that requires access to sensitive data\u2014like a customer\u2019s full bank account number? You\u2019re not alone. Imagine this: you're developing with backend plugins, operating under elevated privileges, and fully expecting the System Admin service to give you unrestricted","canonical_url":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/#blogposting","name":"Retrieving Masked Field Values Programmatically in Dynamics 365 - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Retrieving Masked Field Values Programmatically in Dynamics 365","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365.png","@id":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/#articleImage","width":1925,"height":1100,"caption":"Retrieving Masked Field Values Programmatically in Dynamics 365"},"datePublished":"2025-06-23T15:46:18+05:30","dateModified":"2025-06-23T15:46:18+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/#webpage"},"articleSection":"Dynamics 365, Technical, Dynamics 365"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/#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\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/#listItem","name":"Retrieving Masked Field Values Programmatically in Dynamics 365"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/#listItem","position":3,"name":"Retrieving Masked Field Values Programmatically in Dynamics 365","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\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/#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\/sam-kumar\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/","name":"Sam Kumar","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/ede4386d06665d3d5ee2ecccb6c36df60385d561e317372bd89dffb7e4b1de2f?s=96&d=mm&r=g","width":96,"height":96,"caption":"Sam Kumar"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/","name":"Retrieving Masked Field Values Programmatically in Dynamics 365 - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Are you working on a Dynamics 365 Customer Engagement (CE) project and struggling to integrate a payment system that requires access to sensitive data\u2014like a customer\u2019s full bank account number? You\u2019re not alone. Imagine this: you're developing with backend plugins, operating under elevated privileges, and fully expecting the System Admin service to give you unrestricted","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/#author"},"datePublished":"2025-06-23T15:46:18+05:30","dateModified":"2025-06-23T15:46:18+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":"Retrieving Masked Field Values Programmatically in Dynamics 365 - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Are you working on a Dynamics 365 Customer Engagement (CE) project and struggling to integrate a payment system that requires access to sensitive data\u2014like a customer\u2019s full bank account number? You\u2019re not alone. Imagine this: you're developing with backend plugins, operating under elevated privileges, and fully expecting the System Admin service to give you unrestricted","og:url":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365.png","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365.png","og:image:width":1925,"og:image:height":1100,"article:published_time":"2025-06-23T10:16:18+00:00","article:modified_time":"2025-06-23T10:16:18+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Retrieving Masked Field Values Programmatically in Dynamics 365 - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Are you working on a Dynamics 365 Customer Engagement (CE) project and struggling to integrate a payment system that requires access to sensitive data\u2014like a customer\u2019s full bank account number? You\u2019re not alone. Imagine this: you're developing with backend plugins, operating under elevated privileges, and fully expecting the System Admin service to give you unrestricted","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2025\/06\/Retrieving-Masked-Field-Values-Programmatically-in-Dynamics-365.png","twitter:label1":"Written by","twitter:data1":"Sam Kumar","twitter:label2":"Est. reading time","twitter:data2":"3 minutes"},"aioseo_meta_data":{"post_id":"41587","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"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":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"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":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2025-06-23 10:10:29","updated":"2025-07-04 12:20: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\tRetrieving Masked Field Values Programmatically in Dynamics 365\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":"Retrieving Masked Field Values Programmatically in Dynamics 365","link":"https:\/\/www.inogic.com\/blog\/2025\/06\/retrieving-masked-field-values-programmatically-in-dynamics-365\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/41587","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\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=41587"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/41587\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=41587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=41587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=41587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}