{"id":1011,"date":"2026-11-16T08:30:00","date_gmt":"2026-11-16T13:30:00","guid":{"rendered":"https:\/\/www.dataflowsoln.com\/blog\/?p=1011"},"modified":"2026-11-16T08:30:00","modified_gmt":"2026-11-16T13:30:00","slug":"the-customer-number-hardcoded-since-2014","status":"publish","type":"post","link":"https:\/\/dataflowsoln.com\/blog\/the-customer-number-hardcoded-since-2014\/","title":{"rendered":"BC Teardown #11: The customer number hardcoded since 2014"},"content":{"rendered":"<p><em>Somewhere in your code, &#8216;C00010&#8217; is doing a lot of heavy lifting.<\/em><\/p>\n\n<h2>The pain<\/h2>\n<p>Special pricing for one customer was hardcoded years ago. Now a second customer needs the same deal, and only a developer can give it to them.<\/p>\n<h2>Why it happens<\/h2>\n<p>Business rules written into code can only be changed by a developer, with a deployment, every single time.<\/p>\n<h2>Before: A rule nobody can see<\/h2>\n<pre style=\"background:#0c182c;color:#e6ecf5;padding:20px 24px;border-radius:10px;overflow-x:auto;font-size:15px;line-height:1.55;\"><code>if SalesHeader.\"Sell-to Customer No.\" =\n  'C00010' then\n  ApplySpecialPricing(SalesHeader);\n\n\/\/ Who is C00010? Nobody remembers.<\/code><\/pre>\n<h2>After: A setting users can change<\/h2>\n<pre style=\"background:#0c182c;color:#e6ecf5;padding:20px 24px;border-radius:10px;overflow-x:auto;font-size:15px;line-height:1.55;\"><code>tableextension 50170 \"DF Customer\" extends Customer\n{\n  fields\n  {\n    field(50170; \"DF Special Pricing\"; Boolean)\n    { }\n  }\n}\n\n\/\/ In the code:\nCustomer.Get(SalesHeader.\"Sell-to Customer No.\");\nif Customer.\"DF Special Pricing\" then\n  ApplySpecialPricing(SalesHeader);<\/code><\/pre>\n<h2>The result<\/h2>\n<p>Finance ticks a box on the customer card. No developer, no deployment, no code archaeology.<\/p>\n<p><strong>Tip:<\/strong> Search your code for quoted customer, item and account numbers. Each one is a future support ticket.<\/p>\n<p><a href=\"https:\/\/dataflowsoln.com\/blog\/wp-content\/uploads\/2026\/11\/BC-Teardown-11-carousel.pdf\" target=\"_blank\" rel=\"noopener\">Download this teardown as a PDF<\/a><\/p>\n<hr \/>\n<p><strong>Got a Business Central problem like this?<\/strong> Free 30 minute review of your setup. Senior Microsoft certified developers, and you talk to the person writing the code. <a href=\"https:\/\/www.dataflowsoln.com\/#contact\">Contact Dataflow Solutions<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Somewhere in your code, &#8216;C00010&#8217; is doing a lot of heavy lifting.<\/p>\n","protected":false},"author":2,"featured_media":37,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,9,21],"class_list":["post-1011","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bc-teardowns","tag-al","tag-business-central","tag-setup-tables"],"_links":{"self":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts\/1011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/comments?post=1011"}],"version-history":[{"count":1,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts\/1011\/revisions"}],"predecessor-version":[{"id":1033,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/posts\/1011\/revisions\/1033"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/media\/37"}],"wp:attachment":[{"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/media?parent=1011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/categories?post=1011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dataflowsoln.com\/blog\/wp-json\/wp\/v2\/tags?post=1011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}