Discover essential insights about D365 Finance and Operations (D365FO) through our user-friendly technical blog. Our content covers implementation, customization, troubleshooting, and key trends in D365FO. Stay informed about performance optimization, security updates, and X++ coding techniques. Learn efficient ways for data migration and workflow automation. Simplify your D365FO experience with our expert guidance. Your top resource for D365FO knowledge, designed for easy understanding.#Learn
Friday, January 6, 2023
How to apply custom range on AOT query in D365 Finance and Operations
Saturday, December 24, 2022
How to add range on AOT query and X++ with two different columns.
Let's learn about how to add two different data source columns range on one column range in AOT Query. also i am covering how can we apply same on X++ query.
Only the point to be consider is we need to use parenthesis correctly and Proper enum name -
DocumentStatus::None.
Apply range on X++ Query.
Override the execute query method of your form Datasource and add below code.
public void executeQuery()
{
this.query.dataSourceTable(tableNum(yourDatasourcename)).clearRanges();
Query query = new Query(this.query());
QueryBuildDataSource TestAllSOLinesView_ds1 = query.dataSourceTable(tableNum(TestAllSOLinesView));
queryBuildRange queryBuildRange = TestAllSOLinesView_ds1.addRange(fieldNum(TestAllSOLinesView, DocumentStatus));
queryBuildRange.value(strFmt('((DocumentStatus == %1) || ((TestConfirmationStatus == "%2")
this.query(query);
super();
}
AOT Range on 2 different date columns
refer below screen shot - I have set the value property with greater than condition on two date column of my data source.
ex - (TestReqShippingDate > TestAllPOLinesView.TestConfirmedShippingDate)
Update Values During Data Entity Import in D365FO
Update Values During Data Entity Import in D365FO Updating Field Values During Data Entity Import in Dynamics 365 Finance ...
-
How to Export Data Packages in Microsoft Dynamics 365 finance and operations How to Export Data Packages in Microsof...
-
Data Management Package REST API - Import Package in Dynamics 365FO Using Postman Data Management Package REST...
-
How to Register Return Sales Order Lines in X++ The TestSalesReturnOrderLineRegister Class in X++ The TestSalesRetu...