Order LastModifiedOn Exceptions

Discussions concerning general integration topics.

Moderator: Phil Barton

Post Reply
crhill@dhititle.com
Posts: 2
Joined: Wed Sep 22, 2021 12:25 pm

Order LastModifiedOn Exceptions

Post 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?
PaulMcCullough
Posts: 23
Joined: Wed Jul 12, 2023 11:29 am

Re: Order LastModifiedOn Exceptions

Post by PaulMcCullough »

OrderInfo LastModifiedOn is updated whenever the order is saved. Is there a specific scenario that prompted your question?
crhill@dhititle.com
Posts: 2
Joined: Wed Sep 22, 2021 12:25 pm

Re: Order LastModifiedOn Exceptions

Post 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.
BobRichards
Posts: 1377
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Order LastModifiedOn Exceptions

Post 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.
Bob Richards, Senior Software Developer, SoftPro
Post Reply