Add OrderID parameter to Request Url for Order Event Rules (3)
AnsweredThe Request URL feature for Global > Order Event Rules is a great way to kick off external processes. However, it does not pass any parameters, as a result the external process has to call back to get the Order Id. The simple call to make is Order_GetLastOrderID; however, this has several shortcomings:
1) It requires a call that could easily be unnecessary
2) Forces extra bookkeeping on the external app
3) Won't work well when a system is under high transaction load because another order may have been entered by the time the external app makes its request. This will make A LOT of bookkeeping code necessary as the external app has to look the last several orders up and keep track of which ones it has processed.
This would seem like a simple change for Americommerce to make with minimal downside technical risk of breaking existing code.
0
-
Official comment
When making the request, you can use mergecodes in your request url that will get resolved before the actual request is made. For example, you can request a url such as http://myexternalserver.com?order=##ORDERID## and the ##ORDERID## will resolve to the order id that triggered the workflow rule. Try setting up your workflow rule using that mergecode. If you have any trouble getting it set up, please contact us in support as we can help you further on this. -
When making the request, you can use mergecodes in your request url that will get resolved before the actual request is made. For example, you can request a url such as http://myexternalserver.com?order=##ORDERID## and the ##ORDERID## will resolve to the order id that triggered the workflow rule. Try setting up your workflow rule using that mergecode. If you have any trouble getting it set up, please contact us in support as we can help you further on this. 0
Please sign in to leave a comment.
Comments
2 comments