{"id":91142,"date":"2024-12-12T11:01:03","date_gmt":"2024-12-12T11:01:03","guid":{"rendered":"https:\/\/arquiconsult.com\/?p=91142"},"modified":"2025-01-22T09:11:28","modified_gmt":"2025-01-22T09:11:28","slug":"bc-data-retention-policies","status":"publish","type":"post","link":"https:\/\/arquiconsult.com\/es\/bc-data-retention-policies\/","title":{"rendered":"#064 BC DATA RETENTION POLICIES"},"content":{"rendered":"<div class=\"services_vertical horizontal_services row\" style=\"background-color: #f7f7f7; padding: 25px; border-radius: 5px; text-align: justify;\">\n<p>Retention policies define how long data is stored, ensuring compliance, reducing risks, and optimizing system performance. In Business Central, they help to automate data management, aligning business and regulatory requirements.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><u>How to activate this feature<\/u><\/p>\n<p>Business Central includes a standard set of tables that can be configured to automatically delete data, based on predefined criteria. To activate this feature, access the Retention Policies list, which contains pre-existing records that you can review and enable as needed.<\/p>\n<p><img loading=\"lazy\" class=\"size-medium wp-image-90868 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/How-to-activate-this-feature-627x480.png\" alt=\"-\" width=\"627\" height=\"480\" srcset=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/How-to-activate-this-feature-627x480.png 627w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/How-to-activate-this-feature-768x588.png 768w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/How-to-activate-this-feature-320x245.png 320w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/How-to-activate-this-feature-480x368.png 480w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/How-to-activate-this-feature-800x613.png 800w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/How-to-activate-this-feature.png 828w\" sizes=\"(max-width: 627px) 100vw, 627px\" title=\"-\"><\/p>\n<p>To add a new record, select the table, define the retention period, and check the enabled field. This will activate the retention police in the job queue entries.<\/p>\n<p><img loading=\"lazy\" class=\"size-medium wp-image-90871 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/To-add-a-new-record-640x460.png\" alt=\"-\" width=\"640\" height=\"460\" srcset=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/To-add-a-new-record-640x460.png 640w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/To-add-a-new-record-768x552.png 768w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/To-add-a-new-record-320x230.png 320w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/To-add-a-new-record-480x345.png 480w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/To-add-a-new-record-800x575.png 800w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/To-add-a-new-record.png 838w\" sizes=\"(max-width: 640px) 100vw, 640px\" title=\"-\"><\/p>\n<p>You can also apply the policy to specific data in a table, rather than all records, by filtering the data for each line. The policy will apply only to the records that the filters return.<\/p>\n<p>&nbsp;<\/p>\n<p>If you only need to setup tables that Business Central standard provides, you do not need any development but in case you want to add new tables, from other apps, you need to create a codeunit (install or upgrade), so the tables can be added.<\/p>\n<p>Example:<\/p>\n<p><img loading=\"lazy\" class=\"size-medium wp-image-90874 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/Example-640x255.png\" alt=\"-\" width=\"640\" height=\"255\" srcset=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/Example-640x255.png 640w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/Example-320x128.png 320w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/Example-480x191.png 480w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2025\/01\/Example.png 665w\" sizes=\"(max-width: 640px) 100vw, 640px\" title=\"-\"><\/p>\n<p><strong>Note: <\/strong>The tables that can be added using the developed codeunit must belong to the same app where the codeunit is being created.<\/p>\n<p>&nbsp;<\/p>\n<p>Other <strong>interesting links<\/strong>:<\/p>\n<ul>\n<li>Microsoft documentation for retention policies &#8211; <a href=\"https:\/\/learn.microsoft.com\/en-us\/dynamics365\/business-central\/admin-data-retention-policies\" target=\"_blank\" rel=\"noopener\">https:\/\/learn.microsoft.com\/en-us\/dynamics365\/business-central\/admin-data-retention-policies<\/a><\/li>\n<\/ul>\n<!--themify_builder_content-->\n<div id=\"themify_builder_content-91142\" data-postid=\"91142\" class=\"themify_builder_content themify_builder_content-91142 themify_builder tf_clear\">\n    \t<!-- module_row -->\n\t<div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_nus1581 tb_first tf_clearfix\">\n\t    \t\t<div class=\"row_inner col_align_top col-count-1 tf_box tf_w tf_rel\">\n\t\t\t<div  data-lazy=\"1\" class=\"module_column tb-column col-full first tb_cai8581 tf_box\">\n\t\t\t    \t        <div class=\"tb-column-inner tf_box tf_w\">\n\t\t    <!-- module text -->\n<div  class=\"module module-text tb_9tkr581 arquitps-data  \" data-lazy=\"1\">\n        <div  class=\"tb_text_wrap\">\n    <p><script>\njQuery(\".tbp_post_month:contains(Janeiro)\").html(\"January\");\n\njQuery(\".tbp_post_month:contains(Fevereiro)\").html(\"February\");\n\n\njQuery(\".tbp_post_month:contains(Mar\u00e7o)\").html(\"March\");\n\n\njQuery(\".tbp_post_month:contains(Abril)\").html(\"April\");\n\n\njQuery(\".tbp_post_month:contains(Maio)\").html(\"May\");\n\n\njQuery(\".tbp_post_month:contains(Junho)\").html(\"June\");\n\n\njQuery(\".tbp_post_month:contains(Julho)\").html(\"July\");\n\njQuery(\".tbp_post_month:contains(Agosto)\").html(\"August\");\n\njQuery(\".tbp_post_month:contains(Setembro)\").html(\"September\");\n\njQuery(\".tbp_post_month:contains(Outubro)\").html(\"October\");\n\njQuery(\".tbp_post_month:contains(Novembro)\").html(\"November\");\n\njQuery(\".tbp_post_month:contains(Dezembro)\").html(\"December\");\t\n\n\n\n<\/script><\/p>    <\/div>\n<\/div>\n<!-- \/module text -->\t        <\/div>\n\t    \t<\/div>\n\t\t    <\/div>\n\t    <!-- \/row_inner -->\n\t<\/div>\n\t<!-- \/module_row -->\n\t\t<!-- module_row -->\n\t<div  data-anchor=\"sucesso\" data-hide-anchor=\"1\" data-lazy=\"1\" class=\"module_row themify_builder_row sucesso repeat tb_has_section tb_section-sucesso tb_a1jx132 tf_clearfix\" >\n\t    \t\t<div class=\"row_inner col_align_top col-count-1 tf_box tf_w tf_rel\">\n\t\t\t<div  data-lazy=\"1\" class=\"module_column tb-column col-full first tb_jspx132 tf_box\">\n\t\t\t    \t        <div class=\"tb-column-inner tf_box tf_w\">\n\t\t    <!-- module buttons -->\n<div  class=\"module module-buttons tb_967c132 buttons-horizontal transparent popmake-24705 large circle tf_textc\" data-lazy=\"1\">\n    \t<div class=\"module-buttons-item tf_inline_b\">\n\t\t\t\t\t\t\t<a href=\"#\" class=\"ui builder_button tb_default_color\" >\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"tf_inline_b tf_vmiddle\">Give as a Feedback and Suggest Questions<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t    \t<\/div>\n\t<\/div>\n<!-- \/module buttons -->\n\t        <\/div>\n\t    \t<\/div>\n\t\t    <\/div>\n\t    <!-- \/row_inner -->\n\t<\/div>\n\t<!-- \/module_row -->\n\t<\/div>\n<!--\/themify_builder_content-->","protected":false},"excerpt":{"rendered":"<p>Retention policies define how long data is stored, ensuring compliance, reducing risks, and optimizing system performance. In Business Central, they help to automate data management, aligning business and regulatory requirements. &nbsp; How to activate this feature Business Central includes a standard set of tables that can be configured to automatically delete data, based on predefined [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":90880,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2065],"tags":[2645,2059],"acf":[],"_links":{"self":[{"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/posts\/91142"}],"collection":[{"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/comments?post=91142"}],"version-history":[{"count":0,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/posts\/91142\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/media\/90880"}],"wp:attachment":[{"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/media?parent=91142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/categories?post=91142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/tags?post=91142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}