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)

can we create Two workflows in single form ?

(0) ShareShare
ReportReport
Posted on by 1,010

Hello All,

I have created a workflow for Bank Account Creation. Now again i want to create workflow for Bank Account Modification. but i cant use two WorkFlows at a time. So, how can I use workflow for Bank Account Modification ?  

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Jonathan  Halland Profile Picture
    11,310 on at

    Hi DKS.

    You can create multiple workflows and simply specify "activation conditions" on each of the workflows so that you know which one to kick off.

    Alternately. You can customize and use the same Submit button for both workflows. Then in the class behind the submit button  you can add some logic before your call to Workflow::activateFromWorkflowType to pass the relevant workflow type parameter.

  • D.K.S. Profile Picture
    1,010 on at

    Hi Jonathan,

    I am using same workflow to first for create BankAccount and Second for delete BankAccount. after first workflow submission, I am submitting second workflow but i am getting same Subject in Notification after submission of Delete bank Account workflow. I want to change Subject of workflow Notification for these two different task. How can i achieve it ?

  • Jonathan  Halland Profile Picture
    11,310 on at

    Hi DKS, for submission the workflow system needs a description which it finds from the default workflow for that document type.

    In your active method of your datasource you could set the default workflowtype for the form in code....E.g.\

    if (some condition)

    element.design().workflowType(workFlowTypeStr(MyApproveWorkflow));

    else

    element.design().workflowType(workFlowTypeStr(MyDeleteWorkflow));

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