Question about Data Retrieve in Before Commit Event

0
Hi, I need to retrieve Objects in Before Commit Event for entity validation check. I am wondering if it is the same for me to use retrieve by association and from database in BCO since it is done on server side?   Will I get inconsistent data with Retrieve by Association in BCO?
asked
1 answers
-1

Yes, you could see different behaviour here. 

If the object hasn't been committed before (isNew()) I expect all database retrieves associated to the object will be empty.

If the object associations have changed, these changes will also not show up in the BCO when using database retrieves.

Retrieve by association will probably give you the best results in this scenario (unless you are interested in seeing the pre-change state)

answered