You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

On Save groovy looping for every line item in sales order each time it is saved

Summary:

Customer raises sales orders containing large number of items. Each time the sales order is saved the On Save extension is triggered and performs the same validations across each line even though there has been no change. This is leading to performance issue when many lines exist.

Customer only wants On Save to validate new lines or those being updated.

Same for when a sales order is being revised.

I am curious to know if isAttributeChanged() is useful in this instance

Any suggestions will be great

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!