Page 1 of 1

Order LastModifiedOn Exceptions

Posted: Tue Sep 12, 2023 4:33 pm
by crhill@dhititle.com
What information relevant to an order can change without updating OrderInfo LastModifiedOn? Or, what - if any - order changes does OrderInfo LastModifiedOn not reflect?

Re: Order LastModifiedOn Exceptions

Posted: Wed Sep 13, 2023 12:08 pm
by PaulMcCullough
OrderInfo LastModifiedOn is updated whenever the order is saved. Is there a specific scenario that prompted your question?

Re: Order LastModifiedOn Exceptions

Posted: Wed Sep 13, 2023 5:26 pm
by crhill@dhititle.com
Thanks for the reply. We are researching options to detect an order change for publication to internal systems, both database-sourced and mid-tier-sourced change detection. We want to ensure that changes via any available path are captured when committed.

Re: Order LastModifiedOn Exceptions

Posted: Thu Sep 14, 2023 2:19 pm
by BobRichards
If you want to know when an order is saved:
  • Subscribe to "IOrderStore.OrderSaved" event. This event is called by Select server during the process of an order save once it has passed all validation steps. If you do any lengthy processing here you will slow down all user saves. You might want to add the order to a queue of changed orders and process it in a different thread. You may want to add logic to detect the order is already in the list since it will fire every time the user press "Save order" or if an Automation Snippet changes an order.
  • Subscribe to "OrderChanged" notification. This is fired when a user (or Automation Snippet, etc.) saves an order. This will not slow the order close since it is fired after any order closed processing is done.
Additionally, there is only one source of order saves. It occurs when the updated order is saved by the server.