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

Notifications

Announcements

No record found.

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,671 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans