We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Extracting new orders/preventing invalid admin orders

Extracting new orders/preventing invalid admin orders

mg21
Visitor
1 0 0
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.
Reply 1 (1)

PaulNewton
Shopify Partner
8031 688 1649

Hi @mg21 👋

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:

examples: https://tasks.mechanic.dev/?q=tag%20untag%20order 

 

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.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org