I am not sure if this makes sense or is there another better/structured way to this. Also, I am just beginning to get up to speed on Workflows and not sure how to take advantage.
I have a custom module that needs to run a function for shipping type tasks. I only need the order number passed to my module's function. Timing is important with some prerequisite tasks. When figuring this out with the client, running in Workflows will probably be best if we can do it. I am wondering if triggering a webhook would be possible? The webhook URL would be the current Miva store. I understand that the payload would be the Order JSON object. It would have all I needed to run my module's function.
Can the Workflow Webhook URL call the current domain name?
When this happens, my plan is to intercept the call with a system function where If the Screen = MyCallBackScreen, process the s.content_data passed from Order Workflows to extract the Order_ID and run the module function.
Any suggestions?
Scott
I have a custom module that needs to run a function for shipping type tasks. I only need the order number passed to my module's function. Timing is important with some prerequisite tasks. When figuring this out with the client, running in Workflows will probably be best if we can do it. I am wondering if triggering a webhook would be possible? The webhook URL would be the current Miva store. I understand that the payload would be the Order JSON object. It would have all I needed to run my module's function.
Can the Workflow Webhook URL call the current domain name?
When this happens, my plan is to intercept the call with a system function where If the Screen = MyCallBackScreen, process the s.content_data passed from Order Workflows to extract the Order_ID and run the module function.
Any suggestions?
Scott
Comment