Hello Everyone,
We have a customization where we are updating Allocation details, user will select Inventory ID and give Lot Serial number to a custom field under Details section (in So line level) and accordingly in Allocation pop-up the Lot/Serial will be associated/updated.
From screen level it is working fine but when we are trying it through Sales Order Endpoint API it fails to do so. On debug we identified the difference between flow of event handler execution like below:
From Screen Level:
- SOLine_InventoryID_FieldUpdating
- SOLine_InventoryID_FieldUpdated
- SOLineSplit_IsAllocated_FieldUpdated
- SOLineSplit_RowInserted
- SOLineSplit_LotSerialNbr_FieldUpdated
- SOLineSplit_IsAllocated_FieldUpdated
- Persist()
From API:
- SOLine_InventoryID_FieldUpdating
- SOLine_InventoryID_FieldUpdated
- Persist()
The identification is from Endpoint Order API Call SOLineSplit_IsAllocated_FieldUpdated, SOLineSplit_RowInserted, SOLineSplit_LotSerialNbr_FieldUpdated these events are not executing.
The same implementation we have for 19R2, where it working fine from screen and Endpoint API as well and follows the event execution sequence as mentioned above under “From Screen Level”.
Can someone please suggest the possible cause of it and the possible solutions to resolve it.
Thanks in Advance !