Developer forum

Forum » Development » Notifications for order processing errors

Notifications for order processing errors

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

hi guys,

I have a solution where the whole ordering process is pretty sensitive.

I want to be able to stay one step ahead of our customers and be notified when something goes wrong in the ordering process.

Right now, I have in mind 2 possible scenarios:

1. Order was not sent to ERP
2. Order has not been completed

Is there any notification I can connect to for fulfilling the above need?

Thank you,

Adrian


Replies

 
Morten Snedker Dynamicweb Employee
Morten Snedker
Reply

Hi Adrian,

I can't think of  a good notification that will do that for you. CheckoutDone could be used, but only if the checkout is actually completed. If it is not, you will (obviously) not be notified.

So my best bet is a scheduled task that runs frequently (like every 5 minutes) that checks all orders with IntegrationOrderId having a value and OrderComplete = false, and vice versa. And then you will probably need a flag that indicates if the order has been handled by your check.

BR
Snedker

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Morten,

I understand. A scheduled task could work for this purpose as it can handle multiple scenarios.

Thank you for the suggestion.

Adrian

 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

I think best suitable is Ecommerce.Cart.CheckoutDoneOrderIsNotCompleteArgs

https://doc.dynamicweb.com/api/html/1a35b951-b414-5045-2b2c-2e8e92792387.htm

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Thank you guys.

It looks like we have a few potential directions.

Thank you,
Adrian

 

You must be logged in to post in the forum