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)

workflow submit not work

(0) ShareShare
ReportReport
Posted on by 2,050

i'v created new custom workflow on sales order but when i clicked on submit nothing happens 

so i flow this steps here

https://drive.google.com/file/d/0B1GCZFk-upztVThocm9vSFNBcUE/view

any idea what i'v miss 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Khurshid Wali Profile Picture
    928 on at

    Hello Mohammed, 

    Your zip file is corrupt and what do you mean by nothing happens.

    For submit button Check your Submit method of Submit Manager class which has to run after submitting workflow.

    Here is a good tutorial to create a workflow. 

    https://axarif.wordpress.com/2016/06/02/ax-2012-create-custom-workflow/

    regards,

    Khurshid wali

  • mohammed.mqi Profile Picture
    2,050 on at

    thanks for replay

    when i clickd on Submit  button nothing happens 

    here my method of Submit Manager

    void submit(Args args)
    {
    // Variable declaration.
    recId recId = args.record().RecId;
    WorkflowCorrelationId workflowCorrelationId;
    // Hardcoded type name
    WorkflowTypeName workflowTypeName =workflowtypestr(SalesCreditLimitAppr);
    // Initial note is the information that users enter when they
    // submit the document for workflow.
    WorkflowComment note ="";
    WorkflowSubmitDialog workflowSubmitDialog;
    SalesTable SalesTable;
    // Opens the submit to workflow dialog.
    workflowSubmitDialog = WorkflowSubmitDialog::construct(args.caller().getActiveWorkflowConfiguration());
    workflowSubmitDialog.run();
    if (workflowSubmitDialog.parmIsClosedOK())
    {
    recId = args.record().RecId;
    SalesTable = args.record();
    // Get comments from the submit to workflow dialog.
        note = workflowSubmitDialog.parmWorkflowComment();
    try
    {
    ttsbegin;
    workflowCorrelationId = Workflow::activateFromWorkflowType(workflowTypeName,recId,note,NoYes::No);
    SalesTable.CreditLimitApprovalStatus = SalesCreditLimitApprovalStatus::Submitted;
    // Send an Infolog message.
    info("Submitted to workflow.");
    ttscommit;
    }
    
    catch(exception::Error)
    {
    info("Error on workflow activation.");
    }
    }
    args.caller().updateWorkFlowControls();
    }
    

    and if you need to see that link here

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
imran ul haq Profile Picture

imran ul haq 8

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 4 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans