{"id":27736,"date":"2023-12-15T07:24:46","date_gmt":"2023-12-15T07:24:46","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/sagex3\/?p=27736"},"modified":"2023-12-15T07:24:47","modified_gmt":"2023-12-15T07:24:47","slug":"how-to-send-a-log-trace-file-via-email-using-the-standard-process","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/12\/15\/how-to-send-a-log-trace-file-via-email-using-the-standard-process\/","title":{"rendered":"How to send a log trace file via email using the standard process"},"content":{"rendered":"\n<p><strong>Step 1 : Start the Batch server<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>In Sage X3, <strong>Batch server <\/strong>is a component of the software that is responsible for executing batch processes. Batch processes are typically large-scale, repetitive tasks that need to be performed in the background, such as data imports, report generation, data updates, and other automated operations.<\/li><li>Path : All -&gt; Administration -&gt; Endpoints -&gt; Batch server.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img\" target=\"_blank\" rel=\"no opener noreferrer\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"481\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"  src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Batch_Server-1024x481.png\" alt=\"\" class=\"wp-image-27737\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Batch_Server-1024x481.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Batch_Server-300x141.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Batch_Server-768x361.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Batch_Server-660x310.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Batch_Server.png 1459w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong>Fig 1 : Batch server<\/strong><\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Click the &#8220;Start&#8221; option by clicking on the three-dot &#8220;Action&#8221; button.<\/li><\/ul>\n\n\n\n<p><strong>Step 2 : Create a Task code in task management.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Path : All -&gt; Usage -&gt; Batch server -&gt; Task management.<\/li><li><strong>Task management <\/strong>within Sage X3 typically refers to the process of organizing, tracking, and managing various tasks.<\/li><\/ul>\n\n\n\n<p><strong><u>NOTE <\/u><\/strong>: Choose &#8220;Task&#8221; for processing in functions or select &#8220;Script&#8221; as the task type for subprograms.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img\" target=\"_blank\" rel=\"no opener noreferrer\"><img decoding=\"async\" width=\"1024\" height=\"412\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"  src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Task_management-1024x412.png\" alt=\"\" class=\"wp-image-27738\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Task_management-1024x412.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Task_management-300x121.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Task_management-768x309.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Task_management-660x266.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Task_management.png 1488w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong>Fig 2 : Task management<\/strong><\/figcaption><\/figure>\n\n\n\n<p>Fig 2 : Task management<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Make a new task code.<\/li><li>Choose &#8220;Processing&#8221; as the task type.<\/li><li>Specify the function you want to call in the &#8216;Function&#8217; field for this task code.<\/li><li>Tick the &#8216;Message &#8211; User&#8217; box.<\/li><\/ol>\n\n\n\n<p><strong>Step 3 : Creating a workflow.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Path : All -&gt; Setup -&gt; Workflow -&gt; Workflow rules.<\/li><\/ul>\n\n\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Duplicate the &#8216;ENDREQ&#8217; Standard workflow.<\/li><li>Set the event type to &#8216;End of task.&#8217;<\/li><li>In the event code field, enter the task code you are using for log traces, like &#8216;YFUNSTOR&#8217; for Stock resynchronization and control as an example.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img\" target=\"_blank\" rel=\"no opener noreferrer\"><img decoding=\"async\" width=\"1024\" height=\"230\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"  src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Workflow_triggered_mail-1024x230.png\" alt=\"\" class=\"wp-image-27740\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Workflow_triggered_mail-1024x230.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Workflow_triggered_mail-300x67.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Workflow_triggered_mail-768x172.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Workflow_triggered_mail-660x148.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Workflow_triggered_mail.png 1387w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong>Fig 3.2 : Workflow_management_checkbox<\/strong><\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>On the General tab, mark the &#8216;Trigger Email&#8217; box, which will send an email to the specified recipient ID.<\/li><li>If necessary, enable the &#8216;Debug mode&#8217; checkbox for log traces\/log files after processing.<\/li><\/ul>\n\n\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Enter the recipient&#8217;s ID in the Recipient field within the Recipient tab and proceed with the following steps.If required enter conditions or else put it blank.<\/li><li>Ensure that the &#8220;Send email&#8221; option is set to &#8216;YES.&#8217;<\/li><li>Set the milestone to &#8216;NO.&#8217;<\/li><li>Select the &#8220;Delegate option&#8221; as &#8216;NO.&#8217;<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img\" target=\"_blank\" rel=\"no opener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"151\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"  src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Wokflow_Linked_trace_file-1024x151.png\" alt=\"\" class=\"wp-image-27742\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Wokflow_Linked_trace_file-1024x151.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Wokflow_Linked_trace_file-300x44.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Wokflow_Linked_trace_file-768x113.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Wokflow_Linked_trace_file-660x97.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Wokflow_Linked_trace_file.png 1384w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong>Fig 3.4 : Workflow Attachments<\/strong><\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Tick the &#8216;Linked trace file&#8217; checkbox in the Message tab.<\/li><\/ul>\n\n\n\n<p><strong>Step 4 : Query submission.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Path : All -&gt; Usage -&gt; Batch server -&gt; Query submission.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img\" target=\"_blank\" rel=\"no opener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"468\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"  src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query-submission-1024x468.png\" alt=\"\" class=\"wp-image-27743\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query-submission-1024x468.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query-submission-300x137.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query-submission-768x351.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query-submission-1536x703.png 1536w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query-submission-660x302.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query-submission.png 1539w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong>Fig 4.1 : Query submission<\/strong><\/figcaption><\/figure>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>In the Query submission section, provide the task code you wish to call.<\/li><li>Click the validation button located in the top-right corner.<\/li><li>Upon clicking the Validation button, a screen will open, showing the linked function.<\/li><li>Input the necessary data, click the &#8216;OK&#8217; button, and a query will be created and displayed in the message box.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img\" target=\"_blank\" rel=\"no opener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"335\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"  src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/FUNSTOR_screen-1024x335.png\" alt=\"\" class=\"wp-image-27744\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/FUNSTOR_screen-1024x335.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/FUNSTOR_screen-300x98.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/FUNSTOR_screen-768x251.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/FUNSTOR_screen-660x216.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/FUNSTOR_screen.png 1534w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong>Fig 4.2 : Stock resynchronization and control (FUNSTOR)<\/strong><\/figcaption><\/figure>\n\n\n\n<p><strong><u>Note:<\/u><\/strong> You can verify the query in Query management.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img\" target=\"_blank\" rel=\"no opener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"1021\" height=\"509\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"  src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query_submission_popup.png\" alt=\"\" class=\"wp-image-27745\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query_submission_popup.png 1021w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query_submission_popup-300x150.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query_submission_popup-768x383.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query_submission_popup-660x329.png 660w\" sizes=\"(max-width: 1021px) 100vw, 1021px\" \/><figcaption><strong>Fig 4.3 : Query submission<\/strong><\/figcaption><\/figure>\n\n\n\n<p><strong>Step 4 : Query management.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Path : All -&gt; Usage -&gt; Batch server -&gt; Query management.<\/li><\/ul>\n\n\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>You can observe that following the Query submission, there is a function listed in the Task code column. The status of the query can be found in the Status column, with &#8216;Standby&#8217; indicating it&#8217;s processing and &#8216;Finished&#8217; indicating that the query has been executed.<\/li><li>To view the most recent query, click the Update button located in the top-right corner.<\/li><li>In the Task code section, you&#8217;ll find the task code you created during the &#8216;query submission&#8217; process.<\/li><li>Under the Status column, you can verify the status of the query.<\/li><li>The Task type column displays whether the query is function-based or script-based.<\/li><li>To access the log file, click the three-dot &#8220;Action&#8221; button and select &#8220;Log.&#8221; This will display the log file for the process.<\/li><li>Once the status changes to &#8220;Finished,&#8221; the recipient will receive an email containing the log trace file.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img\" target=\"_blank\" rel=\"no opener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"302\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"  src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query_management_action_button-1024x302.png\" alt=\"\" class=\"wp-image-27747\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query_management_action_button-1024x302.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query_management_action_button-300x89.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query_management_action_button-768x227.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query_management_action_button-1536x454.png 1536w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query_management_action_button-2048x605.png 2048w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/11\/Query_management_action_button-660x195.png 660w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong>Fig 4.5 : Query management<\/strong><\/figcaption><\/figure>\n\n\n\n<p>In this way we can <strong>send a log trace file via email using the standard process<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1 : Start the Batch server In Sage X3, Batch server is a component of the software that is responsible for executing batch processes. Batch processes are typically large-scale, repetitive tasks that need to be performed in the background, such as data imports, report generation, data updates, and other automated operations. Path : All\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/12\/15\/how-to-send-a-log-trace-file-via-email-using-the-standard-process\/\">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":[3162,5,8,3642,9,10,2796,11],"tags":[3906,3908,3907,2432,3905],"class_list":["post-27736","post","type-post","status-publish","format-standard","hentry","category-greytrix","category-features","category-sage-erp-x3","category-sage-x3","category-sage-x3-consulting","category-standard","category-technical","category-tips","tag-batch-task-file-in-mail","tag-end-a-log-trace-file-via-email","tag-log-trace-file","tag-workflow","tag-workflow-rule"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/27736","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=27736"}],"version-history":[{"count":2,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/27736\/revisions"}],"predecessor-version":[{"id":27749,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/27736\/revisions\/27749"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=27736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=27736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=27736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}