{"id":29189,"date":"2024-05-30T09:14:21","date_gmt":"2024-05-30T09:14:21","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/sagex3\/?p=29189"},"modified":"2024-05-30T09:14:21","modified_gmt":"2024-05-30T09:14:21","slug":"auto-attachments-tagging-routine-customization-in-sage-x3","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/05\/30\/auto-attachments-tagging-routine-customization-in-sage-x3\/","title":{"rendered":"Auto-attachments tagging routine customization in Sage X3"},"content":{"rendered":"\n<p>In <a href=\"https:\/\/www.greytrix.com\/sage-x3\/sage-x3-development\/\" target=\"_blank\" rel=\"noreferrer noopener\">Sage X3<\/a>, one of our client\u2019s requirements was to have a way to get their attachments auto-tag to their respective transactions in a regular interval of time.<\/p>\n\n\n\n<p>For this we\u2019ve developed a customization in place that&#8217;ll not only fulfill the requirement with minimal user efforts but also take in consideration of several validations and redundant file attachments.<\/p>\n\n\n\n<p>For this we\u2019re referencing following paths and screenshots below:<\/p>\n\n\n\n<p>Screen dictionary: All &gt; Development &gt; Script dictionary &gt; Screens (GESAMK)<br>Window dictionary: All &gt; Development &gt; Script dictionary &gt; Windows (GESAWI)<\/p>\n\n\n\n<p><strong>New Stuff:<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/05\/30\/validation-of-the-payment-screens-utr-number-field\/\" target=\"_blank\" rel=\"noreferrer noopener\">Validation of the payment screen\u2019s UTR number field<\/a><\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/Fig.-1-ATTACHMENT-DROPBOX-in-root-directory.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/Fig.-1-ATTACHMENT-DROPBOX-in-root-directory.png\" alt=\"Fig. 1 - ATTACHMENT-DROPBOX in root directory\"><\/a><\/center>\n<font size=\"2\"><center>Fig. 1 &#8211; ATTACHMENT-DROPBOX in root directory<\/center><\/font>\n\n\n\n<p>-As shown in Fig. 1 we\u2019ve created a folder \u201cATTACHMENTS-DROPBOX\u201d within the application folder root directory which is where sub-directories for different transactions exist.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/Fig.-2-Original-Attachment-status-in-entry-1024x658.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/Fig.-2-Original-Attachment-status-in-entry-1024x658.png\" alt=\"Fig. 2 - Original Attachment status in entry\"><\/a><\/center>\n<font size=\"2\"><center>Fig. 2 &#8211; Original Attachment status in entry<\/center><\/font>\n\n\n\n<p>-For reference we\u2019ll be taking a Sales Order transaction, and as we can see the entry doesn&#8217;t have any attachments as shown in Fig. 2.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/Fig.-3-Sub-directories-for-transactions.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/Fig.-3-Sub-directories-for-transactions.png\" alt=\"Fig. 3 - Sub-directories for transactions\"><\/a><\/center>\n<font size=\"2\"><center>Fig. 3 &#8211; Sub-directories for transactions<\/center><\/font>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/Fig.-4-Files-deployed-within-the-SO-dropbox-folder.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/Fig.-4-Files-deployed-within-the-SO-dropbox-folder.png\" alt=\"Fig. 4 - Files deployed within the SO dropbox folder\"><\/a><\/center>\n<font size=\"2\"><center>Fig. 4 &#8211; Files deployed within the SO dropbox folder<\/center><\/font>\n\n\n\n<p>-Now the user will have to drop all their attachment files within the respective transaction directories as shown in Fig. 3 and Fig. 4.<\/p>\n\n\n\n<p>Note: The files will only be auto-attached if they follow below guidelines:<\/p>\n\n\n\n<p>-The file name should be the same as Transaction entry no. with no special characters other than \u201c-\u201d. For example: If the entry no. is SOH\/2024\/ABC-1 then the file name will be SOH2024ABC-1.pdf<br>-The file should be of known file formats only such as PDF, Excel, Txt.<br>-Per transaction only 1 file will be considered till the file is auto-attached.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/Fig.-5-Files-automatically-removed-after-routine-run.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/Fig.-5-Files-automatically-removed-after-routine-run.png\" alt=\"Fig. 5 - Files automatically removed after routine run\"><\/a><\/center>\n<font size=\"2\"><center>Fig. 5 &#8211; Files automatically removed after routine run<\/center><\/font>\n\n\n\n<p>-Now once the user has properly deployed the files within the folders then the system will run the periodic routine and auto-attach the files to their entries. And once the routine runs its course then the attached files will be removed from the folders automatically as shown in Fig. 5.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/Fig.-6-Files-shown-within-the-transaction-attachments-list-1024x650.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/Fig.-6-Files-shown-within-the-transaction-attachments-list-1024x650.png\" alt=\"Fig. 6 - Files shown within the transaction attachments list\"><\/a><\/center>\n<font size=\"2\"><center>Fig. 6 &#8211; Files shown within the transaction attachments list<\/center><\/font>\n\n\n\n<p>-The attachments can then be previewed from the Transaction entry attachments list as shown in Fig. 6.<\/p>\n\n\n\n<p>-If in case the files are deployed without the guidelines then the routine will skip their attachment process informing the user to correct the files.<\/p>\n\n\n\n<p>This way we\u2019ve the customization to provide a solution to manual attachments tagging in Sage X3.<\/p>\n\n\n[about_us_blog_common]\n","protected":false},"excerpt":{"rendered":"<p>In Sage X3, one of our client\u2019s requirements was to have a way to get their attachments auto-tag to their respective transactions in a regular interval of time. For this we\u2019ve developed a customization in place that&#8217;ll not only fulfill the requirement with minimal user efforts but also take in consideration of several validations and\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/05\/30\/auto-attachments-tagging-routine-customization-in-sage-x3\/\">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":[13,8],"tags":[4187,3015,173,493,795,4188,3857,4189,3265],"class_list":["post-29189","post","type-post","status-publish","format-standard","hentry","category-integration","category-sage-erp-x3","tag-activity","tag-attachments","tag-automatic","tag-customization","tag-field","tag-files","tag-folders","tag-routine","tag-sagex3"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/29189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=29189"}],"version-history":[{"count":8,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/29189\/revisions"}],"predecessor-version":[{"id":29215,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/29189\/revisions\/29215"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=29189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=29189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=29189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}