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

  • Jonathan  Halland Profile Picture
    11,306 on at
    RE: can we create Two workflows in single form ?

    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));

  • D.K.S. Profile Picture
    1,010 on at
    RE: can we create Two workflows in single form ?

    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 ?

  • Verified answer
    Jonathan  Halland Profile Picture
    11,306 on at
    RE: can we create Two workflows in single form ?

    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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 46

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans