Create Custom Filter in d365 through x++
For creating a custom filter in d365 like this shown below, you must follow the following steps: Ø Create an Enum of your status like below. Ø Create the field of status in your table and apply Enum to your status field. Ø Declare the variable of Query Filter at the start of the form. QueryFilter queryFilter; Ø Create the init and execute query method on the data source of the form like below; public void init() { super(); queryFilter = TABLE _ds.query().addQueryFilter( TABLE _ds.queryBuildDataSource(),"Status"); } public void executeQuery() { ...