Announcement

Collapse
No announcement yet.

How to force a Webhook in Order Workflow

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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,
    Scott
    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    #2
    Originally posted by ids View Post
    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.
    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.

    workflow.JPG

    Originally posted by ids View Post
    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.
    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.
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment


      #3
      Thanks Nick.
      Need to offer Shipping Insurance?
      Interactive Design Solutions https://www.myids.net
      MivaMerchant Business Partner | Certified MivaMerchant Web Developer
      Competitive Rates, Custom Modules and Integrations, Store Integration
      AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
      My T-shirt Collection is mostly MivaCon T-shirts!!

      Comment

      Working...
      X