I am writing a connector to lookup product prices from an ERP when the product code changes (either for a new line or and existing one) and also when the quanity/discount changes on an exisitng line.
I have been able to implement the change of quantity/discount fine, but I am unsure of the behaviour when a product code is changed/added.
The event I thought would fire was: ProductInfo GetProduct(QuoteAlternativeContextInfo context, string erpProductKey) but this doesn't ever seem to fire when the product code is changed.
The only event that does fire when I change or add a new product code is: QuoteLineInfo GetQuoteLinesFromProduct(QuoteAlternativeContextInfo context, string erpProductKey) but this is called 4 times whenever I change a product code?
Please can you advise how I should properly detect the change of product code (for a new line or an existing one)?