{"id":194,"date":"2022-06-07T11:28:29","date_gmt":"2022-06-07T11:28:29","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/acumatica\/?p=194"},"modified":"2025-01-08T04:50:16","modified_gmt":"2025-01-08T04:50:16","slug":"acumatica-adding-custom-validation-on-release-event","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/","title":{"rendered":"Acumatica &#8211; Adding custom validation on Release event"},"content":{"rendered":"\n<p>Acumatica ERP allows customization to interrupt the standard business logic and add\/change the user defined criteria to complete the process as per business requirement. Validation plays an important role to allow or restrict any events and provides user a chance to make the changes prior to applying it on the business level.<\/p>\n\n\n\n<p>In this blog, we will explore the process of adding custom validation on release event considering invoices and memos screen. The release process continues only if the validation passes.<\/p>\n\n\n\n<p>Below example shows the validation of allowing the release event only if the invoice date is current date or the next day. Failing to do so will generate an error message to stop the Release process.<\/p>\n\n\n\n<p>Create a customization project, override a Release method of ARInvoiceEntry, and add the validation. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create a customization project and include ARInvoiceEntry under \u201cCODE\u201d section.<\/li>\n\n\n\n<li>Click on override method option and select the Release method.<\/li>\n<\/ul>\n\n\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-content\/uploads\/2022\/06\/overrideRelease.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-content\/uploads\/2022\/06\/overrideRelease.jpg\" alt=\"overrideRelease\"><\/a><\/p>\n\n\n<ul class=\"wp-block-list\">\n<li>Enter the validation code as shown in below screenshot.<\/li>\n<\/ul>\n\n\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-content\/uploads\/2022\/06\/invoiceGraph.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-content\/uploads\/2022\/06\/invoiceGraph.jpg\" alt=\"invoiceGraph\"><\/a><\/p>\n\n\n<ul class=\"wp-block-list\">\n<li>Publish the Customization to get reflected on Invoice and Memos Screen<\/li>\n<\/ul>\n\n\n\n<p>This is how we can interrupt an existing event unless it passes user\u2019s business criteria.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Acumatica ERP allows customization to interrupt the standard business logic and add\/change the user defined criteria to complete the process as per business requirement. Validation plays an important role to allow or restrict any events and provides user a chance to make the changes prior to applying it on the business level. In this blog,\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,3,14],"tags":[4,159,65,68,67,66],"class_list":["post-194","post","type-post","status-publish","format-standard","hentry","category-acumatica-customization","category-acumatica-erp","category-acumatica-services","tag-acumatica","tag-acumatica-customization","tag-custom-validation","tag-exception","tag-override","tag-validation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adding custom validation to the release event in Acumatica<\/title>\n<meta name=\"description\" content=\"Know about the process of adding custom validation on release event considering invoices and memos screen.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding custom validation to the release event in Acumatica\" \/>\n<meta property=\"og:description\" content=\"Know about the process of adding custom validation on release event considering invoices and memos screen.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/\" \/>\n<meta property=\"og:site_name\" content=\"Acumatica \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-07T11:28:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-08T04:50:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-content\/uploads\/2022\/06\/overrideRelease.jpg\" \/>\n<meta name=\"author\" content=\"greytrix\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"greytrix\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/\",\"name\":\"Adding custom validation to the release event in Acumatica\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-content\/uploads\/2022\/06\/overrideRelease.jpg\",\"datePublished\":\"2022-06-07T11:28:29+00:00\",\"dateModified\":\"2025-01-08T04:50:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/#\/schema\/person\/c49d53021d39726d820c6fd517b2c2ec\"},\"description\":\"Know about the process of adding custom validation on release event considering invoices and memos screen.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/#primaryimage\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-content\/uploads\/2022\/06\/overrideRelease.jpg\",\"contentUrl\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-content\/uploads\/2022\/06\/overrideRelease.jpg\",\"width\":599,\"height\":448},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Acumatica &#8211; Adding custom validation on Release event\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/#website\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/\",\"name\":\"Acumatica \u2013 Tips, Tricks and Components\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/#\/schema\/person\/c49d53021d39726d820c6fd517b2c2ec\",\"name\":\"greytrix\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3cdb553d6ca07df0e407d5e092f2410d163e0fd40b27734b345b04c8f0786969?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3cdb553d6ca07df0e407d5e092f2410d163e0fd40b27734b345b04c8f0786969?s=96&d=mm&r=g\",\"caption\":\"greytrix\"},\"url\":\"https:\/\/www.greytrix.com\/blogs\/acumatica\/author\/greytrix\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Adding custom validation to the release event in Acumatica","description":"Know about the process of adding custom validation on release event considering invoices and memos screen.","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:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/","og_locale":"en_US","og_type":"article","og_title":"Adding custom validation to the release event in Acumatica","og_description":"Know about the process of adding custom validation on release event considering invoices and memos screen.","og_url":"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/","og_site_name":"Acumatica \u2013 Tips, Tricks and Components","article_published_time":"2022-06-07T11:28:29+00:00","article_modified_time":"2025-01-08T04:50:16+00:00","og_image":[{"url":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-content\/uploads\/2022\/06\/overrideRelease.jpg","type":"","width":"","height":""}],"author":"greytrix","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greytrix","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/","url":"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/","name":"Adding custom validation to the release event in Acumatica","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/acumatica\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/#primaryimage"},"thumbnailUrl":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-content\/uploads\/2022\/06\/overrideRelease.jpg","datePublished":"2022-06-07T11:28:29+00:00","dateModified":"2025-01-08T04:50:16+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/acumatica\/#\/schema\/person\/c49d53021d39726d820c6fd517b2c2ec"},"description":"Know about the process of adding custom validation on release event considering invoices and memos screen.","breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/#primaryimage","url":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-content\/uploads\/2022\/06\/overrideRelease.jpg","contentUrl":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-content\/uploads\/2022\/06\/overrideRelease.jpg","width":599,"height":448},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/acumatica\/2022\/06\/07\/acumatica-adding-custom-validation-on-release-event\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/acumatica\/"},{"@type":"ListItem","position":2,"name":"Acumatica &#8211; Adding custom validation on Release event"}]},{"@type":"WebSite","@id":"https:\/\/www.greytrix.com\/blogs\/acumatica\/#website","url":"https:\/\/www.greytrix.com\/blogs\/acumatica\/","name":"Acumatica \u2013 Tips, Tricks and Components","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greytrix.com\/blogs\/acumatica\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.greytrix.com\/blogs\/acumatica\/#\/schema\/person\/c49d53021d39726d820c6fd517b2c2ec","name":"greytrix","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/acumatica\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3cdb553d6ca07df0e407d5e092f2410d163e0fd40b27734b345b04c8f0786969?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3cdb553d6ca07df0e407d5e092f2410d163e0fd40b27734b345b04c8f0786969?s=96&d=mm&r=g","caption":"greytrix"},"url":"https:\/\/www.greytrix.com\/blogs\/acumatica\/author\/greytrix\/"}]}},"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-json\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":3,"href":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-json\/wp\/v2\/posts\/194\/revisions"}],"predecessor-version":[{"id":2616,"href":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-json\/wp\/v2\/posts\/194\/revisions\/2616"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-json\/wp\/v2\/media?parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-json\/wp\/v2\/categories?post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/acumatica\/wp-json\/wp\/v2\/tags?post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}