Posts

Showing posts from May, 2019

Getting Workflow Approvers In Dynamics AX (AX 2012)

Getting Workflow Approvers In Dynamics AX (AX 2012) Posted by  kamaukihonge  on  June 27, 2014 Posted in:  Development ,  Workflows . Leave a comment UNDERSTANDING THE LOGIC ABOUT WORKFLOW APPROVALS To start with, you need to understand how the workflow approvals are processed in Dynamics AX. There are three tables that we will use WorkflowTrackingStatusTable WorkflowTrackingTable WorkflowTrackingCommentTable This three tables can be used to get the approvers names, Approval Dates and Approval Comment, HOW THE TABLES RELATE TO EACH OTHER WorkflowTrackingStatusTable relates to using the field WorkflowTrackingStatusTable in WorkflowTrackingTable and RecId in WorkflowTrackingStatusTable Simple X++ select Statement WorkflowTrackingStatusTable _status; WorkflowTrackingTable _tracking; select  *  from  _tracking  where  _tracking.WorkflowTrackingStatusTable ==  _status.RecId ; WorkflowTr...

Create custom workflow Microsoft Dynamics AX 2012

Image
Create custom workflow Microsoft Dynamics AX 2012 workflow Here we work on how to create custom workflow using x++  dynamics ax 2012 . It’s simple and easy to do with the following steps in dynamics ax 2012. The following steps shows to create custom workflow for new created customer approval. Below are the objects needs to be created: Base Enum WorkflowApprovalStatus field Method on CustTable Query Workflow category Workflow type Workflow approval Drag workflow approval to workflow type Enable workflow on form BaseEnum: Create “ CustWFApprovalStatus ” base enum for the workflow approval status Not Submitted Submitted Pending Approval Change Request Approved Reject Create new Field on CustTable: Create Enum type field ‘ WorkflowApprovalStatus ‘ on CustTable and assign CustWFApprovalStatus to enumtype Override Method on CustTable: Override canSubmitToWorkflow method on C ustTable pub...