Problems accessing PreviousOrder from OrderSavingEventArgs

Discussions related to custom development with Select.
Post Reply
kwesterlage
Posts: 73
Joined: Thu May 21, 2015 2:28 pm

Problems accessing PreviousOrder from OrderSavingEventArgs

Post by kwesterlage »

I subscribed to an orderSavingEvent on the shell side for some lightweight order comparison logic (identifying new attachments), but when I attempt to access the PreviousOrder property of
the OrderSavingEventArgs I get a 'Specified method is not supported' exception'.
BobRichards
Posts: 1377
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Problems accessing PreviousOrder from OrderSavingEventAr

Post by BobRichards »

The previous order is only available on Server packages. In the shell package, you have to manually open the prior order version. This feature is made available on the Server since it is essentially available for "free" since Select gets the prior order version during the order save and typical order saving validations are done on the Server.

Depending on what you are attempting to do, you could to open the prior order version or perhaps save the current version of the necessary property(ies) in the Tags collection associated with the item so they are available during the next order save.
Bob Richards, Senior Software Developer, SoftPro
Post Reply