web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Issues while using SysWorkflowApprovalService externally

(0) ShareShare
ReportReport
Posted on by

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?

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,058 User Group Leader on at
    RE: Issues while using SysWorkflowApprovalService externally

    The BaseEnum values, which are coming form C# console are those equal to expectations of AX??? I mean in terms of changing status of workflow.

    and one more question, are you trying to change status of workflow step directly by .update method or trying to update workflow status by calling framework class?

  • Community Member Profile Picture
    on at
    RE: Issues while using SysWorkflowApprovalService externally

    Yes they are. Namely 'Approve' 'Reject' and 'Defer' (checked from WorkflowAction table)

    The documentation at the msdn site for AOT objects claims that this is supposed to be included

    Using the framework class. That's our project requirement

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans