Announcement
Collapse
No announcement yet.
How to force a Webhook in Order Workflow
Collapse
X
-
To do this it will take a combination of the Order Shipment Status Change which will be called when a shipment moves from picking to shipped (or in other words when the shipped checkbox is checked) and a condition that will ensure that the tracking number is populated and that the shipment status is shipped for any of the items in the order.Originally posted by ids View PostIt would be optimal if : In order processing I first need to create a shipment for an order. I would like to force the webhook to run after adding a tracking number and clicking the Shipped checkbox.
workflow.JPG
When using the setup above the the workflow will re run any time a shipment is marked and meets the conditions. So if you uncheck the shipped checkbox and save the check again it will run because the conditions have been meet. This can be done on the same order and does not need a new order to run the workflow.Originally posted by ids View PostNote: I would love to be able to rerun the same order avoiding having to keep creating new test orders repeatedly. I have had some success running the webhook in the default Process New and Updated orders. The Workflow gets triggered multiple times, which is bad.
Leave a comment:
-
How to force a Webhook in Order Workflow
It doesn't matter how the webhook runs. I simply need the webhook to run to be able to continue to develop a custom module. There are some minimal data requirements but the Trigger and Conditions will be up to the end-user to configure in Order Workflows.
It would be optimal if : In order processing I first need to create a shipment for an order. I would like to force the webhook to run after adding a tracking number and clicking the Shipped checkbox.
Barring a button in Order Processing of an order to force the web hook, what trigger, or triggers, And what conditions would be needed?
Note: I would love to be able to rerun the same order avoiding having to keep creating new test orders repeatedly. I have had some success running the webhook in the default Process New and Updated orders. The Workflow gets triggered multiple times, which is bad.
Thanks,
ScottTags: None
Leave a comment: