We run a process through Sales Orders.
After the Order is complete, it autoprints.
This all works fine until, for what ever reason the order needs to be updated.
Then the order is auto printed again.
What i was looking to do was to set a checkbox when the order has been autoprinted and use this as part of the condition for the autoprint.
That way the order will only autoprint on the first pass and we can handle the order change through our existing processes.
What i was thinking was to put a BPM together to run when the order Autoprints and update the checkbox so it will never autoprint again unless the checkbox is unchecked.
anybody know what method the Autoprint uses or what data tables get updated ?
I solved this by using Data Tags. Each autoprint BPM checks to see if the “autoprint” data tag is set - if not, print and set the data tag, if it is not set then do not print. Three widgets - check, print and set tag. Should do what you need.
In the BPM editor, there is a widget for setting Data Tags. I added a condition to check for the Data Tag, and another one the logic after the Autoprint widget. I’ve attached it for you to see below the image. You should read up on them in the Help - they can be very useful for this sort of thing. There is also a Data Tag Maint program in the menu under System Management -> Purge/Cleanup Routines -> Data Tag Maintenance.