{"id":1482,"date":"2026-01-07T07:41:19","date_gmt":"2026-01-07T07:41:19","guid":{"rendered":"https:\/\/fredborg.org\/?p=1482"},"modified":"2026-01-07T10:30:31","modified_gmt":"2026-01-07T10:30:31","slug":"episode-5-the-truth-about-ai-integration-logic-bound-actions-and-the-verdict","status":"publish","type":"post","link":"https:\/\/fredborg.org\/?p=1482","title":{"rendered":"Episode 5: The Truth About AI Integration (Logic, Bound Actions, and The Verdict)"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">We have reached the final episode of our series. We have built the Staging tables, the UI, and the API.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, it is time to connect the final piece: <strong>The Processing Logic.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But more importantly, it is time to look at the &#8220;Truth&#8221; of this experiment. Does an &#8220;Agentic&#8221; workflow actually work for enterprise-grade Business Central development? Or is it just a fun toy?<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Implementing the Logic (Phase 4 &amp; 5)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">I tasked the Orchestrator with Phase 4: creating the <code>Process Staging<\/code> codeunit. This is the brain of the operation, responsible for taking the raw data from our staging tables and converting it into a real Sales Order.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The agent successfully:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Created the Codeunit.<\/li>\n\n\n\n<li>Generated a Unit Test (which we skipped for now, but it\u2019s nice to have!).<\/li>\n\n\n\n<li>Implemented the logic to find the customer based on email, create the Sales Header, and loop through lines to create Sales Lines.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">However, when I tried to compile, we hit a few snags. The agent missed some <code>using<\/code> statements and had a naming conflict with the codeunit.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><em>This confirms a recurring theme: AI is great at the &#8220;heavy lifting&#8221; (writing 100 lines of logic), but you still need a human pilot to fix the syntax errors.<\/em><\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">2. The &#8220;Bound Action&#8221; Problem<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This was the most technical hurdle of the episode. We needed a way to trigger this processing logic directly from the API.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The agent tried to add a standard Action to the API page. As we discussed in the last episode, <strong>API pages do not support standard actions.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Instead of fighting with the agent to fix it, I switched to manual mode. I wrote a <code>[ServiceEnabled]<\/code> procedure directly on the API page to create a <strong>Bound Action<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Kodestykke<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;ServiceEnabled]\nprocedure Process()\nvar\n    WebShopProcessing: Codeunit &quot;Web Shop Processing&quot;;\nbegin\n    WebShopProcessing.Process(Rec);\nend;\n\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">This allows us to call <code>POST ...\/webOrders(ID)\/Microsoft.NAV.Process<\/code> from an external system to trigger the business logic immediately after uploading the order.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Testing the End-to-End Flow<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">With the Bound Action in place, I opened Postman (well, the VS Code extension equivalent) and fired a test payload.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>POST to API:<\/strong> Created a new Web Order. (Status: <code>201 Created<\/code>)<\/li>\n\n\n\n<li><strong>Verify in BC:<\/strong> The order appeared in our Staging Table.<\/li>\n\n\n\n<li><strong>Trigger Process:<\/strong> I clicked the &#8220;Process&#8221; action in the UI.<\/li>\n\n\n\n<li><strong>Result:<\/strong> A real Sales Order was created in Business Central!<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">It works. We went from zero code to a fully functional, multi-agent constructed integration.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The Verdict: Is AI Ready for Real Work?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After five episodes of &#8220;unfiltered&#8221; coding, here is my honest conclusion.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>AI is an Accelerator, Not a Replacement.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>The Good:<\/strong> I could &#8220;multitask&#8221; like never before. I could have the AI write the boilerplate for an Azure Function while I sat in a Teams meeting. It handles the boring, repetitive tasks (creating tables, pages, simple logic) incredibly fast.<\/li>\n\n\n\n<li><strong>The Bad:<\/strong> You cannot &#8220;one-shot&#8221; an enterprise solution. You still need to understand AL code to fix the compilation errors, architectural mistakes (like the API actions), and missing cleanup triggers (like <code>OnDelete<\/code>).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If you treat AI as a junior developer who writes fast but needs supervision, it will change your life. If you expect it to do everything perfectly while you sleep, you will be disappointed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you for following along on this journey!<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\"  id=\"_ytid_24559\"  width=\"1140\" height=\"641\"  data-origwidth=\"1140\" data-origheight=\"641\" src=\"https:\/\/www.youtube.com\/embed\/dkAerlblquM?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  epyt-is-override  no-lazyload\" title=\"YouTube player\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>We have reached the final episode of our series. We have built the Staging tables, the UI, and the API&#8230;. <a class=\"read-more\" href=\"https:\/\/fredborg.org\/?p=1482\" rel=\"nofollow\"> Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":1484,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1482","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business-central","shapla-grid-item"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Episode 5: The Truth About AI Integration (Logic, Bound Actions, and The Verdict) - Fredborg<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fredborg.org\/?p=1482\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Episode 5: The Truth About AI Integration (Logic, Bound Actions, and The Verdict) - Fredborg\" \/>\n<meta property=\"og:description\" content=\"We have reached the final episode of our series. We have built the Staging tables, the UI, and the API.... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fredborg.org\/?p=1482\" \/>\n<meta property=\"og:site_name\" content=\"Fredborg\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-07T07:41:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-07T10:30:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fredborg.org\/wp-content\/uploads\/2026\/01\/unnamed-4.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"572\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"dfredborg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dfredborg\" \/>\n<meta name=\"twitter:site\" content=\"@dfredborg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dfredborg\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fredborg.org\/?p=1482#article\",\"isPartOf\":{\"@id\":\"https:\/\/fredborg.org\/?p=1482\"},\"author\":{\"name\":\"dfredborg\",\"@id\":\"https:\/\/fredborg.org\/#\/schema\/person\/59a5520cbf04c6bd1267f30b4488e71d\"},\"headline\":\"Episode 5: The Truth About AI Integration (Logic, Bound Actions, and The Verdict)\",\"datePublished\":\"2026-01-07T07:41:19+00:00\",\"dateModified\":\"2026-01-07T10:30:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fredborg.org\/?p=1482\"},\"wordCount\":530,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fredborg.org\/#\/schema\/person\/59a5520cbf04c6bd1267f30b4488e71d\"},\"image\":{\"@id\":\"https:\/\/fredborg.org\/?p=1482#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fredborg.org\/wp-content\/uploads\/2026\/01\/unnamed-4.jpg\",\"articleSection\":[\"Business Central\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fredborg.org\/?p=1482#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fredborg.org\/?p=1482\",\"url\":\"https:\/\/fredborg.org\/?p=1482\",\"name\":\"Episode 5: The Truth About AI Integration (Logic, Bound Actions, and The Verdict) - Fredborg\",\"isPartOf\":{\"@id\":\"https:\/\/fredborg.org\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fredborg.org\/?p=1482#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fredborg.org\/?p=1482#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fredborg.org\/wp-content\/uploads\/2026\/01\/unnamed-4.jpg\",\"datePublished\":\"2026-01-07T07:41:19+00:00\",\"dateModified\":\"2026-01-07T10:30:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fredborg.org\/?p=1482#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fredborg.org\/?p=1482\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fredborg.org\/?p=1482#primaryimage\",\"url\":\"https:\/\/fredborg.org\/wp-content\/uploads\/2026\/01\/unnamed-4.jpg\",\"contentUrl\":\"https:\/\/fredborg.org\/wp-content\/uploads\/2026\/01\/unnamed-4.jpg\",\"width\":1024,\"height\":572},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fredborg.org\/?p=1482#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fredborg.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Episode 5: The Truth About AI Integration (Logic, Bound Actions, and The Verdict)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fredborg.org\/#website\",\"url\":\"https:\/\/fredborg.org\/\",\"name\":\"Fredborg\",\"description\":\"Business Central and Azure\",\"publisher\":{\"@id\":\"https:\/\/fredborg.org\/#\/schema\/person\/59a5520cbf04c6bd1267f30b4488e71d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fredborg.org\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fredborg.org\/#\/schema\/person\/59a5520cbf04c6bd1267f30b4488e71d\",\"name\":\"dfredborg\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fredborg.org\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/fredborg.org\/wp-content\/uploads\/2023\/06\/download.png\",\"contentUrl\":\"https:\/\/fredborg.org\/wp-content\/uploads\/2023\/06\/download.png\",\"width\":256,\"height\":256,\"caption\":\"dfredborg\"},\"logo\":{\"@id\":\"https:\/\/fredborg.org\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:fredborg.org\",\"https:\/\/www.linkedin.com\/in\/dfredborg\/\",\"https:\/\/x.com\/dfredborg\",\"https:\/\/www.youtube.com\/channel\/UCUNZglLDMjBlOK_T9JtI8UA\"],\"url\":\"https:\/\/fredborg.org\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Episode 5: The Truth About AI Integration (Logic, Bound Actions, and The Verdict) - Fredborg","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fredborg.org\/?p=1482","og_locale":"en_US","og_type":"article","og_title":"Episode 5: The Truth About AI Integration (Logic, Bound Actions, and The Verdict) - Fredborg","og_description":"We have reached the final episode of our series. We have built the Staging tables, the UI, and the API.... Read more","og_url":"https:\/\/fredborg.org\/?p=1482","og_site_name":"Fredborg","article_published_time":"2026-01-07T07:41:19+00:00","article_modified_time":"2026-01-07T10:30:31+00:00","og_image":[{"width":1024,"height":572,"url":"https:\/\/fredborg.org\/wp-content\/uploads\/2026\/01\/unnamed-4.jpg","type":"image\/jpeg"}],"author":"dfredborg","twitter_card":"summary_large_image","twitter_creator":"@dfredborg","twitter_site":"@dfredborg","twitter_misc":{"Written by":"dfredborg","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fredborg.org\/?p=1482#article","isPartOf":{"@id":"https:\/\/fredborg.org\/?p=1482"},"author":{"name":"dfredborg","@id":"https:\/\/fredborg.org\/#\/schema\/person\/59a5520cbf04c6bd1267f30b4488e71d"},"headline":"Episode 5: The Truth About AI Integration (Logic, Bound Actions, and The Verdict)","datePublished":"2026-01-07T07:41:19+00:00","dateModified":"2026-01-07T10:30:31+00:00","mainEntityOfPage":{"@id":"https:\/\/fredborg.org\/?p=1482"},"wordCount":530,"commentCount":0,"publisher":{"@id":"https:\/\/fredborg.org\/#\/schema\/person\/59a5520cbf04c6bd1267f30b4488e71d"},"image":{"@id":"https:\/\/fredborg.org\/?p=1482#primaryimage"},"thumbnailUrl":"https:\/\/fredborg.org\/wp-content\/uploads\/2026\/01\/unnamed-4.jpg","articleSection":["Business Central"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fredborg.org\/?p=1482#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fredborg.org\/?p=1482","url":"https:\/\/fredborg.org\/?p=1482","name":"Episode 5: The Truth About AI Integration (Logic, Bound Actions, and The Verdict) - Fredborg","isPartOf":{"@id":"https:\/\/fredborg.org\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fredborg.org\/?p=1482#primaryimage"},"image":{"@id":"https:\/\/fredborg.org\/?p=1482#primaryimage"},"thumbnailUrl":"https:\/\/fredborg.org\/wp-content\/uploads\/2026\/01\/unnamed-4.jpg","datePublished":"2026-01-07T07:41:19+00:00","dateModified":"2026-01-07T10:30:31+00:00","breadcrumb":{"@id":"https:\/\/fredborg.org\/?p=1482#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fredborg.org\/?p=1482"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fredborg.org\/?p=1482#primaryimage","url":"https:\/\/fredborg.org\/wp-content\/uploads\/2026\/01\/unnamed-4.jpg","contentUrl":"https:\/\/fredborg.org\/wp-content\/uploads\/2026\/01\/unnamed-4.jpg","width":1024,"height":572},{"@type":"BreadcrumbList","@id":"https:\/\/fredborg.org\/?p=1482#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fredborg.org\/"},{"@type":"ListItem","position":2,"name":"Episode 5: The Truth About AI Integration (Logic, Bound Actions, and The Verdict)"}]},{"@type":"WebSite","@id":"https:\/\/fredborg.org\/#website","url":"https:\/\/fredborg.org\/","name":"Fredborg","description":"Business Central and Azure","publisher":{"@id":"https:\/\/fredborg.org\/#\/schema\/person\/59a5520cbf04c6bd1267f30b4488e71d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fredborg.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/fredborg.org\/#\/schema\/person\/59a5520cbf04c6bd1267f30b4488e71d","name":"dfredborg","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fredborg.org\/#\/schema\/person\/image\/","url":"https:\/\/fredborg.org\/wp-content\/uploads\/2023\/06\/download.png","contentUrl":"https:\/\/fredborg.org\/wp-content\/uploads\/2023\/06\/download.png","width":256,"height":256,"caption":"dfredborg"},"logo":{"@id":"https:\/\/fredborg.org\/#\/schema\/person\/image\/"},"sameAs":["https:fredborg.org","https:\/\/www.linkedin.com\/in\/dfredborg\/","https:\/\/x.com\/dfredborg","https:\/\/www.youtube.com\/channel\/UCUNZglLDMjBlOK_T9JtI8UA"],"url":"https:\/\/fredborg.org\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fredborg.org\/index.php?rest_route=\/wp\/v2\/posts\/1482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fredborg.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fredborg.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fredborg.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fredborg.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1482"}],"version-history":[{"count":1,"href":"https:\/\/fredborg.org\/index.php?rest_route=\/wp\/v2\/posts\/1482\/revisions"}],"predecessor-version":[{"id":1485,"href":"https:\/\/fredborg.org\/index.php?rest_route=\/wp\/v2\/posts\/1482\/revisions\/1485"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fredborg.org\/index.php?rest_route=\/wp\/v2\/media\/1484"}],"wp:attachment":[{"href":"https:\/\/fredborg.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fredborg.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fredborg.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}