OM extension not working when cancellation of order through API triggered
Summary:
We have OM extension written to apply holds based on few attributes however have written condition to skip if it is revision.
However, we are getting below error when we try to cancel an order through API. Looks the revision validation is bypassing and applying hold.
Please help with the extension to handle this use case.
Error:
You can't use the applyHold method in an order management extension for a change order or for a sales order that you already submitted to fulfillment.
JBO-FOM: : :FOM_EXT_NOHOLD_ON_CNGORDER: <MESSAGE><NUMBER>FOM-4515773</NUMBER><TEXT>You can't use the applyHold method in an order management extension for a change order or for a sales order that you already submitted to fulfillment.</TEXT><CAUSE></CAUSE><ACTION></ACTION><DETAILS></DETAILS><INCIDENT></INCIDENT></MESSAGE>