Hi All,
I am working with BC SaaS.
I would need to change the standard code of table "Sales Header" as new record is being inserted, where I need to modify the code that inserts the "No." value of table "Sales Header", so Numbering series.
I noticed that if I add my code in trigger OnInsert of table "Sales Header", it does not work, since numbering series has already been defined in the local procedure "InitInsert".
When I add my code inside trigger OnInsert all the code is being run before my code is executed. How can I place the code before local procedure InitInsert is called? I know I would use Event Subscriber, Publisher, in onPrem, but since this is SaaS version, I am lost a little bit.
Thank you
Answers
Depeding on WHEN you wants your code to be executed either you can crated an eventsubscriper on either:
OnBeforeInsertEvent
Or
OnBeforeInitInsert
Both is available
So, I have already finished with my custom code, and now I would like to add this code into the CU, so that I can call that CU from as user creates new sales document (sales quote, sales order).
Is this the right place and event?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
sorry for late reply.
I have developed custom numbering series of issued documents per customer. so every document that is issued to a known customer, gets the numbering series specially designed for customer.
thanks for the tip, it helped me a lot.