Return a failure specific to attachments not posting in SAP
When a BuyBot order is submitted, and the order is created successfully but the PDF fails to attach in SAP, the message returned is a direct failure on the order processing. The failure occurs when in fact it DOES create a sales order in SAP if all other requirements are met. The message however is misleading as it does not currently separate errors in processing to create an order from errors with attaching the associated PDF order. There is no indication on the messages that the order processed more with "exception" rather than with a failure. The process currently works as follows:
- Create Order
- Attach PDF
- Send Pass/Fail notification
Failure messages are being sent if step 1 OR 2 fails but should consider differences in the failures. Could there be a consideration to differentiate between create order and attach?
- Success/Failure: Success = Continue, Failure = Send failure notification
- Attachment Failure: This potentially could send a notification "Order 0000000 created with failure to attach document"
- Could the attachment attempt be made 3 times on "loop" within a short time frame (5 seconds) to try to attach before sending the failure notification.
Released 05/05/2023 in the 2.27.0 release.