How to open a screen at query submission of batch task

By | September 29, 2021

In Sage X3, for processing certain functionalities or scripts as per requirement and on interval basis, sage x3 provides a feature of batch task. It allows the user to execute multiple processes at single time and can be processed on interval basis. Creating a batch task is very common. We often create a batch task to automate any processes in Sage X3.

Sage X3 allows adding function code in batch task for execution of those screens based on their function code. Sometimes there might be a requirement where we need to pass parameters using pop screen after query submission of task code. It can be achieved using below steps.

Consider a test screen which is custom action based screen consisting of few fields as shown in below figure.

Fig 01 : Test screen

At first, we need to create a batch task. For that Navigate to: All -> Usage -> Batch Server -> Task Management

In order to open a screen after batch task execution, we need to add the “Function” of the screen and create the “Task code” as shown in below figure.

Fig 02 : Task Management

After entering “Function”, we might get an error saying that “Action not generated in this function” as shown below and will not allow to create the task code.

Fig 03 : Error in Task creation

We can resolve this error by changing settings in “Action” of that function we need to add in the batch task.

Navigate to All -> Development -> Script Dictionary -> Actions -> Click on Actions and open the action code

In General tab, change the ‘Template’ field value to ‘Standard processing’ and change the ‘First Entry’ value to ‘Window entry’. Also we need to add Window code of your screen in ‘Criteria Window’ instead of ‘Main Window’. Along with these changes, make sure that the ‘Batch’ and ‘Public’ checkboxes are checked as shown in below figure.

Fig 04 : Action

Now, if we try to create the batch task again we will be able to create it successfully without errors.

To execute this Batch Task, navigate to All -> Usage -> Batch server -> Query Submission

Fill in the all the values in the screen as shown below along with the ‘Task Code’ of the batch task you created and click on ‘Validation’.

Fig 05 : Query submission

Now we can see that the required screen is opened through the Batch Task.

Fig 06 : Test screen through Batch Task

This blog helps in opening a screen on query submission of batch task.

About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partner is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development and implementation competence. 

Greytrix caters to a wide range of Sage X3, a Sage Business Cloud Solution, offerings. Our unique GUMU™ integrations include Sage X3 for Sage CRMSalesforce.com, Dynamics 365 CRM and Magento eCommerce along with Implementation and Technical Support worldwide for Sage X3. Currently we are Sage X3 Implementation Partner in East Africa, Middle East, Australia, Asia, US, UK. We also offer best-in-class Sage X3 customization and development services, integrated applications such as POS | WMS | Payment Gateway | Shipping System | Business Intelligence | eCommerce and have developed add-ons such as Catch – Weight  and Letter of Credit and India Legislation for Sage X3 to Sage business partners, end users and Sage PSG worldwide. Greytrix Sales Commission App for Sage X3 simplifies commission calculations and postings on sales transactions.

The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for processing and execution of application programs at the click of a button.

Greytrix is a recognized Sage champion ISV Partner for GUMU™ Sage X3 – Sage CRM integration also listed on Sage Marketplace; GUMU™ integration for Sage X3 – Salesforce is a 5-star rated app listed on Salesforce AppExchange and GUMU™ integration for Dynamics 365 CRM – Sage ERP listed on Microsoft AppSource.

For more information on Sage X3 Integration and Services, please contact us at x3@greytrix.com, We would like to hear from you.