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)

Two Workflow in same form

(0) ShareShare
ReportReport
Posted on by 52

Hello,

I have two grids (Header - Line : One to many) and i want to configure workflow for both of these grids. I did some research on this topic and made following:

I created a WF category > Created two WF types > Created two WF approvals

Then created two workflows on the system. I overrided method CanSubmitToWorkflow for each table and configured workflow as to submit each workflow.

On design properties of form, i selected WorkflowEnabled to yes, Datasource to Header Datasource, and Type to header WF type;

On the grid mouse down, i do the following:

On grid Lines Mouse down:

element.design().workflowDatasource(ActLines_ds.id());
element.design().workflowType(workFlowTypeStr(ActLines));
element.updateWorkflowControls();

On grid table Mouse Down:

element.design().workflowDatasource(ActTable_ds.id());
element.design().workflowType(workFlowTypeStr(ActTable));
element.updateWorkflowControls();

But when i submit the line item to workflow, i debug and see that the header is subbmitted. I can't solve this problem, urgent help needed.

 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello badiyev,

    The standard PO form has this header and line workflow functionalities available.

    Probably have a look at how this is designed and compare it with your solution.

    Best regards,

    Ludwig

  • Verified answer
    Satish Panwar Profile Picture
    14,673 Moderator on at

    In addition to what Dr. Ludwig mentioned if you try to configure PO header workflow, you will notice that there is option to include line level workflow underneath it. So from PO perspective you submit header but then it triggers line level workflows.

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