Sage-Partner-for-header

How to Stop Triggering Workflow on Specific Modification in Sage X3

Stop_Triggering_Workflow_on_Specific_Modification_in_Sage_X3

How to Stop Triggering Workflow on Specific Modification in Sage X3

When working with workflows in Sage X3, you may encounter scenarios where a workflow continues to trigger on every modification. If the workflow rule’s operation is set to CM (Change/Modification), this ensures all updates are tracked. However, there are scenarios where businesses prefer not to have workflows triggered for specific field changes.

On the Purchase Order screen, a client may want to skip triggering the workflow whenever the Supplier field is updated. This is because changing the supplier might be a minor adjustment, and the business only wants workflows to trigger for critical updates (like order validation or status changes).

In such cases, Sage X3 provides flexibility through Entry Point Scripts, Specific Scripts, and Actions on Screen, allowing for more precise control of workflow triggering.

Important – For this method to work, your transaction must first be fully signed.

Example Scenario

We’ll take the Purchase Request line level Supplier field as an example.

Step 1: Locate the Supplier Field on Screen

  • Go to the Purchase Request detail screen.
  • In the Fields tab, search for the Supplier field and click on it.
stop_triggering_workflow_on_specific_image_1

Step 2: Add an Action on After Change

  • Go to the Actions tab.
  • Add an action of type SPE on After Change.
  • Save and validate.

This will automatically create a subprogram action inside the Specific Script of Purchase Request.

stop_triggering_workflow_on_specific_image_2

Step 3: Create an Entry Point Script

  • Create a new Entry Point script.
  • Inside this script, write code under the $PAMAPPFLG action.
  • Change the flag (APPFLG) that controls workflow triggering.
stop_triggering_workflow_on_specific_image_3
stop_triggering_workflow_on_specific_image_4

Step 4: Modify the Specific Script

  • Open the Specific Script of Purchase Request.
  • In the subprogram created for After Modification, simply call the $PAMAPPFLG action from your Entry Point script.
stop_triggering_workflow_on_specific_image_5

Result

Now, whenever the Supplier field in Purchase Request is modified, the workflow will not trigger.
This works because the workflow header condition checks whether APPFLG = 0.
Since our code changes this value, the workflow doesn’t fire.

Remember: Your workflow must have a header condition like

[F: ]APPFLG = 0 for this method to work correctly.

Conclusion

By using this approach (Entry Point + Specific Script + Actions), you can selectively control workflow triggering in Sage X3. This is particularly useful when you only want workflows to run on critical modifications and not on every small field change.

About Us

Greytrix Africa is a leading Sage business partner and ISV Partner offering Consulting, Implementation, and development services for Sage X3, Sage 300, Sage 300 People (HRMS), Sage CRM, and Sage Intacct, which covers East Africa, West Africa, SADC, and Middle East region. We offer professional services such as Implementation and Configuration, Business Process Analysis, Project Management, Integrations and Migrations, and Technical & Functional Support, along with enhancements within Sage X3, Sage 300 People (HRMS), Sage 300, Sage CRM, and Sage Intacct across various industry verticals like Process Manufacturing (Food & Beverages, Chemical), Discrete manufacturing (Automotive, Textile & Apparel), Non-Profit, Health-care Industry and Services Industry (Financial, Software & Engineering), Distribution (Transportation & Logistics), and Agriculture.

Our Partners

Get In Touch

Get In Touch

Thank you for contacting us.

Be ready to explore some leading business management solutions that will help shape the future of your business!

Our team will get in touch with you shortly.

Get In Touch

Thank you for downloading Sage X3 Brochure

The brochure is sent successfully on your registered  Email Id.

Download Free Sage X3 Brochure