{"id":16374,"date":"2023-06-05T11:49:23","date_gmt":"2023-06-05T11:49:23","guid":{"rendered":"https:\/\/dynamics.folio3.com\/blog\/?p=16374"},"modified":"2023-06-05T11:53:46","modified_gmt":"2023-06-05T11:53:46","slug":"subscribing-to-events-in-business-central-using-a-l","status":"publish","type":"post","link":"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/","title":{"rendered":"Subscribing to Events in Business Central using A\/L"},"content":{"rendered":"<p>Event Subscription is a powerful way of handling or changing built-in functionality of any extension in Business Central, that extension could be Microsoft extension or any third party extension. Before subscribing to any event we should make sure that event is published in a specific object (codeunit, pages etc.) of another extension.<\/p>\n<p>So in short, today we will be using a business central built-in scenario to demonstrate event subscription and how it comes handy in such scenarios. So initially we will create a credit memo from the posted sales invoice from the business central frontend then we will do the same thing in our extension using AL. Then we will be subscribing to relevant events and will see how subscription can help us to handle built-in functionality of business central. So let\u2019s get started.<\/p>\n<p><strong>1) Create Credit Memo using frontend.<br \/>\n2) Create Credit Memo using AL (our own Codeunit).<br \/>\n3) Create a Subscription Event using AL.<\/strong><\/p>\n<p><strong>Create Credit Memo using frontend:<\/strong><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-16375\" src=\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-001-1.png\" alt=\"\" width=\"1261\" height=\"604\" srcset=\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-001-1.png 1261w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-001-1-300x144.png 300w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-001-1-1024x490.png 1024w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-001-1-768x368.png 768w\" sizes=\"(max-width: 1261px) 100vw, 1261px\" \/><\/p>\n<p>As shown in above screen shot we will open <strong>Correct <\/strong>from menu and click <strong>Create Corrective Credit Memo, <\/strong>if invoice is <strong>fully opened<\/strong> then at the backend Business Central will run <strong>CreateCreditMemoCopyDocument function <\/strong>from <strong>Codeunit &#8220;Correct Posted Sales Invoice&#8221; (1303).<br \/>\n<\/strong>If invoice is <strong>not fully opened<\/strong> then at the backend Business Central will run <strong>CreateCorrectiveCreditMemo<\/strong> <strong>function<\/strong> from <strong>Codeunit &#8220;Correct Posted Sales Invoice&#8221; (1303).<\/strong><\/p>\n<p>Code snippet for <strong>CreateCreditMemoCopyDocument\u00a0 function <\/strong>is attached for reference<strong>:<\/strong> <img decoding=\"async\" class=\"aligncenter size-full wp-image-16376\" src=\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-002-1.png\" alt=\"\" width=\"1081\" height=\"318\" srcset=\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-002-1.png 1081w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-002-1-300x88.png 300w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-002-1-1024x301.png 1024w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-002-1-768x226.png 768w\" sizes=\"(max-width: 1081px) 100vw, 1081px\" \/><\/p>\n<p>Code snippet for <strong>CreateCorrectiveCreditMemo<\/strong> <strong>function <\/strong>is attached for reference<strong>:<\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-16377\" src=\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-003-1.png\" alt=\"\" width=\"1081\" height=\"314\" srcset=\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-003-1.png 1081w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-003-1-300x87.png 300w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-003-1-1024x297.png 1024w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-003-1-768x223.png 768w\" sizes=\"(max-width: 1081px) 100vw, 1081px\" \/><\/p>\n<p>After looking into both functions we can see one main distinction that CreateCorrectiveCreditMemo function has <strong>OnCreateCorrectiveCreditMemoOnBeforePageRun<\/strong> <strong>event, <\/strong>this is how business central publish\/raise events so that another extension can modify its functionality by subscribing to this event if required. In the event parameter we can see first parameter is SalesHeader which is a header of newly created credit memo and second parameter is IsHandled which is Boolean and passed by reference, this Boolean variable is really important in a way while subscribing to event if we don\u2019t want Business Central to run next piece of code then we can just set IsHandled to true during subscription.<br \/>\nNext we will create a credit memo from our extension using AL.<\/p>\n<p><strong>Create Credit Memo using AL:<br \/>\n<\/strong><br \/>\nNow we will achieve the same functionality of creating credit memo from Posted Invoice using our own Codeunit in our custom extension.<\/p>\n<p>Code snippet for our Custom CreditMemo function is attached:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-16378\" src=\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-004-1.png\" alt=\"\" width=\"785\" height=\"534\" srcset=\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-004-1.png 785w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-004-1-300x204.png 300w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-004-1-768x522.png 768w\" sizes=\"(max-width: 785px) 100vw, 785px\" \/><\/p>\n<p>As we can see our custom code call the same <strong>CreateCorrectiveCreditMemo <\/strong>function which is also called by Business Central frontend while creating credit memo, now what we want to do is to change the behavior of this function (CreateCorrectiveCreditMemo) depending on the fact if it is called by our own custom function or by standard Business Central function, in order to do that what we will do is to create an entry of specific invoice in our custom F3ComAXSalesInvoiceMapping table after creating credit memo using our custom function, this custom table will help us to keep track of all the invoices we have worked on from our custom function.<br \/>\nThe above function <strong>CustomCreateCreditMemo<\/strong> takes Posted Invoice No. as an argument and creates a credit memo based on the fact that a specific invoice is fully open or not. When invoice is not fully open then <strong>CreateCorrectiveCreditMemo<\/strong> function is going to get called and as we saw earlier after creating the credit memo this function is opening the same credit memo in the form of Page after it\u2019s being created, so basically whenever our custom function is calling <strong>CreateCorrectiveCreditMemo <\/strong>function that\u2019s when we don\u2019t want to open credit memo page. So in order to achieve that Event Subscription comes in handy, we will be subscribing to <strong>OnCreateCorrectiveCreditMemoOnBeforePageRun Event<\/strong> which is raised in <strong>CreateCorrectiveCreditMemo<\/strong> function.<\/p>\n<p><strong>Create Subscription Event using AL:<\/strong><\/p>\n<p>Code snipped for event subscription:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-16379\" src=\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-005-1.png\" alt=\"\" width=\"1166\" height=\"303\" srcset=\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-005-1.png 1166w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-005-1-300x78.png 300w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-005-1-1024x266.png 1024w, https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2023\/06\/screenshot-005-1-768x200.png 768w\" sizes=\"(max-width: 1166px) 100vw, 1166px\" \/><\/p>\n<p>In the above screenshot we have implemented a function which has some code in it. What that code does is basically look into the Custom F3ComAXSalesInvoiceMapping table to get the entry on the basis of Applies-to Doc. No. field, this field contain the invoice number from which we created a credit memo, if entry found that means this credit memo is created by our custom code, in that case we will set IsHandled flag to true which means Business central will not run the next piece of code (Credit Memo Page will not open), if entry not found that means credit memo is created by standard Business Central code and remaining code will be executed and credit memo page will be opened.<br \/>\nAbove function will be executed whenever <strong>OnCreateCorrectiveCreditMemoOnBeforePageRun Event <\/strong>is being raised. So how did we link our subscriber function to that event? We defined this on function header, EventSubscriber keyword is showing that this function will be worked as Subscriber, ObjectType would be Codeunit in our case and name of Codeunit would be \u201cCorrect Posted Sales Invoice\u201d because the event we want to subscribe is published in \u201cCorrect Posted Sales Invoice\u201d Codeunit, then we will provide event name on function header and next two parameters would be false.<\/p>\n<p><strong>Summary:<\/strong><br \/>\nIn summary what we have done so far is to change the behavior of standard Business Central function<br \/>\nBy not changing the standard code itself but subscribing to relevant events, like that we can subscribe to any event which is raised in any extension and achieve our desired functionality.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Event Subscription is a powerful way of handling or changing built-in functionality of any extension in Business Central, that extension could be Microsoft extension or any third party extension. Before subscribing to any event we should make sure that event is published in a specific object (codeunit, pages etc.) of another extension. So in short, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":15386,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[140],"class_list":["post-16374","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business-central","tag-business-central"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Subscribing to Events in Business Central using A\/L<\/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:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Subscribing to Events in Business Central using A\/L\" \/>\n<meta property=\"og:description\" content=\"Event Subscription is a powerful way of handling or changing built-in functionality of any extension in Business Central, that extension could be Microsoft extension or any third party extension. Before subscribing to any event we should make sure that event is published in a specific object (codeunit, pages etc.) of another extension. So in short, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/\" \/>\n<meta property=\"og:site_name\" content=\"Folio3 Dynamics Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-05T11:49:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-05T11:53:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/06\/Service-Management-In-Dynamics-365.png\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"491\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Folio3 Microsoft Dynamics Partner\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@folio_3\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Khabab Mahboob Butt\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/\"},\"author\":{\"name\":\"Folio3 Microsoft Dynamics Partner\",\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/#\/schema\/person\/f7d38b88c941636642e7a9ecf91c20b4\"},\"headline\":\"Subscribing to Events in Business Central using A\/L\",\"datePublished\":\"2023-06-05T11:49:23+00:00\",\"dateModified\":\"2023-06-05T11:53:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/\"},\"wordCount\":901,\"publisher\":{\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/06\/Service-Management-In-Dynamics-365.png\",\"keywords\":[\"business central\"],\"articleSection\":[\"Business Central\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/\",\"url\":\"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/\",\"name\":\"Subscribing to Events in Business Central using A\/L\",\"isPartOf\":{\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/06\/Service-Management-In-Dynamics-365.png\",\"datePublished\":\"2023-06-05T11:49:23+00:00\",\"dateModified\":\"2023-06-05T11:53:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#primaryimage\",\"url\":\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/06\/Service-Management-In-Dynamics-365.png\",\"contentUrl\":\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/06\/Service-Management-In-Dynamics-365.png\",\"width\":960,\"height\":491,\"caption\":\"Dynamics 365 Service Management\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/dynamics.folio3.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Subscribing to Events in Business Central using A\/L\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/#website\",\"url\":\"https:\/\/dynamics.folio3.com\/blog\/\",\"name\":\"Folio3 Dynamics Blog\",\"description\":\"News, Guides and Info from the world of Microsoft Dynamics\",\"publisher\":{\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dynamics.folio3.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/#organization\",\"name\":\"Folio3\",\"url\":\"https:\/\/dynamics.folio3.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/01\/footer-logo.png\",\"contentUrl\":\"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/01\/footer-logo.png\",\"width\":154,\"height\":100,\"caption\":\"Folio3\"},\"image\":{\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/#\/schema\/person\/f7d38b88c941636642e7a9ecf91c20b4\",\"name\":\"Folio3 Microsoft Dynamics Partner\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dynamics.folio3.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/29f05a21b8db20048e7717694b024bbd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/29f05a21b8db20048e7717694b024bbd?s=96&d=mm&r=g\",\"caption\":\"Folio3 Microsoft Dynamics Partner\"},\"description\":\"Top Microsoft Dynamics partner with 300+ Projects completed worldwide since 2001. Delivering a single point solution tailored to your business needs.\",\"sameAs\":[\"https:\/\/x.com\/folio_3\"],\"url\":\"\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Subscribing to Events in Business Central using A\/L","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:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/","og_locale":"en_US","og_type":"article","og_title":"Subscribing to Events in Business Central using A\/L","og_description":"Event Subscription is a powerful way of handling or changing built-in functionality of any extension in Business Central, that extension could be Microsoft extension or any third party extension. Before subscribing to any event we should make sure that event is published in a specific object (codeunit, pages etc.) of another extension. So in short, [&hellip;]","og_url":"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/","og_site_name":"Folio3 Dynamics Blog","article_published_time":"2023-06-05T11:49:23+00:00","article_modified_time":"2023-06-05T11:53:46+00:00","og_image":[{"width":960,"height":491,"url":"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/06\/Service-Management-In-Dynamics-365.png","type":"image\/png"}],"author":"Folio3 Microsoft Dynamics Partner","twitter_card":"summary_large_image","twitter_creator":"@folio_3","twitter_misc":{"Written by":"Khabab Mahboob Butt","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#article","isPartOf":{"@id":"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/"},"author":{"name":"Folio3 Microsoft Dynamics Partner","@id":"https:\/\/dynamics.folio3.com\/blog\/#\/schema\/person\/f7d38b88c941636642e7a9ecf91c20b4"},"headline":"Subscribing to Events in Business Central using A\/L","datePublished":"2023-06-05T11:49:23+00:00","dateModified":"2023-06-05T11:53:46+00:00","mainEntityOfPage":{"@id":"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/"},"wordCount":901,"publisher":{"@id":"https:\/\/dynamics.folio3.com\/blog\/#organization"},"image":{"@id":"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#primaryimage"},"thumbnailUrl":"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/06\/Service-Management-In-Dynamics-365.png","keywords":["business central"],"articleSection":["Business Central"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/","url":"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/","name":"Subscribing to Events in Business Central using A\/L","isPartOf":{"@id":"https:\/\/dynamics.folio3.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#primaryimage"},"image":{"@id":"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#primaryimage"},"thumbnailUrl":"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/06\/Service-Management-In-Dynamics-365.png","datePublished":"2023-06-05T11:49:23+00:00","dateModified":"2023-06-05T11:53:46+00:00","breadcrumb":{"@id":"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#primaryimage","url":"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/06\/Service-Management-In-Dynamics-365.png","contentUrl":"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/06\/Service-Management-In-Dynamics-365.png","width":960,"height":491,"caption":"Dynamics 365 Service Management"},{"@type":"BreadcrumbList","@id":"https:\/\/dynamics.folio3.com\/blog\/subscribing-to-events-in-business-central-using-a-l\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/dynamics.folio3.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Subscribing to Events in Business Central using A\/L"}]},{"@type":"WebSite","@id":"https:\/\/dynamics.folio3.com\/blog\/#website","url":"https:\/\/dynamics.folio3.com\/blog\/","name":"Folio3 Dynamics Blog","description":"News, Guides and Info from the world of Microsoft Dynamics","publisher":{"@id":"https:\/\/dynamics.folio3.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dynamics.folio3.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dynamics.folio3.com\/blog\/#organization","name":"Folio3","url":"https:\/\/dynamics.folio3.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dynamics.folio3.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/01\/footer-logo.png","contentUrl":"https:\/\/dynamics.folio3.com\/blog\/wp-content\/uploads\/2022\/01\/footer-logo.png","width":154,"height":100,"caption":"Folio3"},"image":{"@id":"https:\/\/dynamics.folio3.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dynamics.folio3.com\/blog\/#\/schema\/person\/f7d38b88c941636642e7a9ecf91c20b4","name":"Folio3 Microsoft Dynamics Partner","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dynamics.folio3.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/29f05a21b8db20048e7717694b024bbd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/29f05a21b8db20048e7717694b024bbd?s=96&d=mm&r=g","caption":"Folio3 Microsoft Dynamics Partner"},"description":"Top Microsoft Dynamics partner with 300+ Projects completed worldwide since 2001. Delivering a single point solution tailored to your business needs.","sameAs":["https:\/\/x.com\/folio_3"],"url":""}]}},"_links":{"self":[{"href":"https:\/\/dynamics.folio3.com\/blog\/wp-json\/wp\/v2\/posts\/16374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dynamics.folio3.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dynamics.folio3.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dynamics.folio3.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dynamics.folio3.com\/blog\/wp-json\/wp\/v2\/comments?post=16374"}],"version-history":[{"count":0,"href":"https:\/\/dynamics.folio3.com\/blog\/wp-json\/wp\/v2\/posts\/16374\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dynamics.folio3.com\/blog\/wp-json\/wp\/v2\/media\/15386"}],"wp:attachment":[{"href":"https:\/\/dynamics.folio3.com\/blog\/wp-json\/wp\/v2\/media?parent=16374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dynamics.folio3.com\/blog\/wp-json\/wp\/v2\/categories?post=16374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dynamics.folio3.com\/blog\/wp-json\/wp\/v2\/tags?post=16374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}