Thursday, 3 March 2022

QueryExecuting in D365 F&O

 [FormDataSourceEventHandler(formDataSourceStr(CustPaymEntry, CustTransOpen), FormDataSourceEventType::QueryExecuting)]

public static void CustTransOpen_OnQueryExecuting(FormDataSource sender, FormDataSourceEventArgs e)

{

sender.query().dataSourceTable(tableNum(CustTransIdRef)).addRange(fieldnum(CustTransIdRef,TransRefType)).value(queryValue(CustTransRefType::Invoice));

}

No comments:

Post a Comment

Creating new D365FO Business Event

  The name should include the noun or phrase that corresponds with theevent, followed by the BusinessEvent suffix. New business event for Cu...