I’m not sure that everybody is aware that a single event handler method (in Dynamics 365 for Finance and Operations) can be decorated with several event handler attributes. For example, a common method can handle both inserts and updates.
[ DataEventHandler(tableStr(MyTable), DataEventType::Inserted), DataEventHandler(tableStr(MyTable), DataEventType::Updated) ] public static void myHandler(Common _sender, DataEventArgs _e)
[ DataEventHandler(tableStr(InventItemSalesSetup), DataEventType::Inserting), DataEventHandler(tableStr(InventItemPurchSetup), DataEventType::Inserting), DataEventHandler(tableStr(InventItemInventSetup), DataEventType::Inserting) ] public static void myHandler(Common sender, DataEventArgs e) { InventItemOrderSetupMap inventSetup = sender; ... }
Comments
Post a Comment