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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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 21

#2
dekion Profile Picture

dekion 4

#2
Virginia99 Profile Picture

Virginia99 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans