Passing Information Between Events on Sales Order
Hi Guys
I want to be able to capture information on the creation of an order and then use this information when the order is saved, I am able to capture the details ok by attaching to the created event of the of the sales order, but how can I then recover this information inside a plugin for each unique order without having to resort to UDFs on the sales order as the data does not need to be stored in the database long term as once the order is saved the data is irrelevant .
The only option I have been able to come with thus far would be some sort of static dictionary or list added to the Business Logic to store the information in memory based upon each sales order at the time and then retrieving it back just before the save.
I suppose I am asking are there any other options?
I want to be able to capture information on the creation of an order and then use this information when the order is saved, I am able to capture the details ok by attaching to the created event of the of the sales order, but how can I then recover this information inside a plugin for each unique order without having to resort to UDFs on the sales order as the data does not need to be stored in the database long term as once the order is saved the data is irrelevant .
The only option I have been able to come with thus far would be some sort of static dictionary or list added to the Business Logic to store the information in memory based upon each sales order at the time and then retrieving it back just before the save.
I suppose I am asking are there any other options?