My integration with my ERP will extract new orders via graphql API based on creation date every 10 minutes.
However, I have customer service agents who are also creating orders using draft orders. I realized they can create incomplete orders. Ie In a draft order they can forget the recipient address!
If they do that, the order will be extracted in an incomplete state and sent to our ERP.
What is the correct way to tell the ERP that there are new orders that are valid? And to let the ERP know to pick up orders that were created?
I’ve investigated tagging orders with Flow to tell the integration they’re ok to pull down, but then I’d have to create another trigger to look for updated orders to check if the tag was added, etc.
but then I’d have to create another trigger to look for updated orders to check if the tag was added, etc.
Yes that’s how that goes in building automations when an ERP doesn’t have any type of validation system of it’s own and it only acts as a mindless consumer.
The only alternative in that situation is a second store/sandbox-store that staff do draft work in and then submit orders that get synced to the main store to then be consumed by the ERP.
If flow doesn’t do it for you because of having to make a bunch of separate process/branches try a scriptable automation tool like mechanic:
If you need this automation setup then contact me for services.
Contact info in forum signature below .
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.