For the creation of Custom Workflow in Dynamics 365 F&O, Kindly follow the following steps; 1. Create a custom Enum WorkflowStatus or you can use an existing one. 2. Create a new table EmployeeLeave as defined below and add the above Enum as a field and name it LeaveStatus . 3. Create a new form EmployeeLeaveForm by using the above table as a data source. 4. Create a new Display Menu Item EmployeeLeaveForm for the above form and add to any Module by creating an extension of the Module Menu from the application Explorer. 5. Create a new Query EmployeeLeaveQuery and add EmployeeLeave as a data source. 6. Create a new Workflow Category EmployeeLeaveCategory . 7. Create a new workflow type EmployeeLeaveWorkflowType . • Category: Select the workflow category from the previous step • Query: Select the query created for the document table • Document menu item: Sel...
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() { ...
For creating the batch job without parameters in D365 X++ via SysOpertion Framework, Follow the following steps; 1- First Create a menu action button in the project 2-Create an extension of menu and add menu button to the Menu. 3- Create a ABCBatchContract Contract class as shown below; [DataContract,SysOperationContractProcessing(classStr(SysOperationAutomaticUIBuilder))] /// <summary> /// Create getter setter for query /// </summary> public class ABCBatchContract { } 4- Create ABCBatchController Controller Class as shown below; /// <summary /// Inventory Blocking batch controller class /// </summary> public class ABCBatchController extends SysOperationServiceController { /// <summary> /// Run the Service Opeeration class action /// </summary> protected void new() { super(classStr(ABCBatchService),methodStr(ABCBatchService...
Comments