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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Sales Order Workflow in AX 2012 R3

(0) ShareShare
ReportReport
Posted on by

I have developed a workflow for Sales Order from AOT. Workflow is working , i have executed it from submit to approval and complete status on Sales Order. But i have encountered two problems, one is that the Yellow Ribbon of Workflow {with Submit Button} appears on the Sales Table , on all sales orders. This yellow ribbon should appear on new sales orders. Below is the screen shot.

6886.sales-table-2.png

Second problem is that the Confirmation Button is still Enabled even when the Sales document is processing through workflow process, and the status of Sales Order is open order. Below is the screen shot of it.

5238.Sales-Table.png

Kindly guide me.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Fredrik Sætre Profile Picture
    12,644 on at

    If the workflow requirement is met the yellow box will appear. You might want to have a work flow requirement that checks document status = none.

    You can at any time post a confirmation even if a confirmation has been posted.  What happens if you post it manually in the form? Is it disabled?

    The sales order has (mainly) three statuses... Open order, delivered and invoiced. I think you would be glad if you check the "document status" field.

  • Community Member Profile Picture
    on at

    thanks for your reply, actually i don't know how can i use the document status. i created a new base enum of " order approval status" and made coding of 'canSubmit' method according to the base enum i created. It is the coding is used

    boolean canSubmitToWorkflow(str _workflowType=”)

    {

    SalesTable SalesTable;

    ;

    if(!this.OrderApprovalStatus == OrderApprovalStatus::NotSubmitted)

    return

    false;

    return

    true;

    }

    now how can i use the document status here or how can i link it with OrderApproval Status, because i think that due to this reason the workflow is applied on all previous sales orders, i just want it to be applied on new sales order not on old ones that already have invoiced.

  • Akshay Pujari Profile Picture
    220 on at

    Hello Muska Khalid, Did you find any solution for this? 

  • mohammed.mqi Profile Picture
    2,050 on at

    hey did anyone fine solution ?!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans