Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Issues while using SysWorkflowApprovalService externally

$
0
0

Hello, i wish to create an application that could handle AX workflows externally.

For testing purposes, I created a Windows Console Application to handle Dynamics AX PO Workflows. I exposed the SysWorkflowApprovalService from the AOT and the application is successfully getting the values from it. In the tables the element has the status "Pending" but when i call the applyAction function with the correct parameters (values for context,action,workItemId,networkUserAlias,networkDomain,comment)  i get this exception "The Element has already been Approved" 

When i change the action to "complete" or "reject" the exception changes to "The Element has already been Rejected"
I tallied the actions from WorkflowAction.Name

Has anyone faced this issue? If yes, how did you overcome it?


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>