cancel
Showing results for 
Search instead for 
Did you mean: 

Create Product Specification during save of Sales Order

DanM
Explorer
0 Kudos
140

Hi,

I am trying to accomplish the following on saving a Sales Order (using Event-BeforeSave ABSL):

  • Create a Product Specification
  • Assign the Product Specification to a Sales Order line

The problem I have, is although it is creating the Product Specification just fine, assigning it to the line doesn't work properly and it is interpretted as just text with no link to the Product Specification.

The Product Specification is fine, because if I use instead the last one I created it assigns correctly and links through. But if I assign the one I'm creating at that moment in the Event-BeforeSave it doesn't work.

It's almost like it's operating in a transaction and even though I've created it it's not committed in the back end until the BeforeSave ABSL ends.

I have tried everything I can think of, including splitting Product Specification creation out and doing it the OnModify and using other BeforeSave events on different nodes under Sales Order but with no luck.

Can anyone help or suggest what I might try to solve it?

Accepted Solutions (0)

Answers (0)