Skip to main content

Notifications

Microsoft Dynamics AX forum

Send Multiple lines in workflow Submit

Posted on by 2,420

Good Morning,

I have created one workflow for movement journal lines.

The form name is InventJournalMovement

and after lines i am submitting workflow

It is working fine for one record.

But if i select Multiple records .The submit button is Disable

Please find the below screenshots

0272.One_5F00_Record.png

For multiple records

3005.2_5F00_records.png

Please provide me any help.

Any help would be greatly Appreciated.

Regrads.

*This post is locked for comments

  • Apratim Profile Picture
    Apratim 149 on at
    Send Multiple lines in workflow Submit
    Hi all;
     
    Can anyone please tell how did we achieve this!

    I have got a same requirement where I have to select multiple records and submit the workflow. The data source which I'm using is LedgerPeriodCloseProjectTask of the form LedgerPeriodCloseProjectTaskListPage. I need to select multiple records on this form and submit and Approve the workflow!

    Thanks,
    Apratim
  • AX 2012 r3 Profile Picture
    AX 2012 r3 2,420 on at
    RE: Send Multiple lines in workflow Submit

    hi Crispin,

    Yes i have mentioned

    Regards

  • AX 2012 r3 Profile Picture
    AX 2012 r3 2,420 on at
    RE: Send Multiple lines in workflow Submit

    Hi Crispin,

    I have created new workflow at header level

    and placed breakpoint in inventjournaltable --> cansubmittoworkflow()

    not hitting.No workflow i am getting

    Please suggest me a good website to create workflow for header level

    I have searched many

    No clues i got

    Please

    Regards

  • AX 2012 r3 Profile Picture
    AX 2012 r3 2,420 on at
    RE: Send Multiple lines in workflow Submit

    Hi crispin,

    Can you please tell me how to change workflow from line level to header level

    Regards

  • AX 2012 r3 Profile Picture
    AX 2012 r3 2,420 on at
    RE: Send Multiple lines in workflow Submit

    Please make sure Submit MenuItem --> MultiSelect Property -Yes

  • AX 2012 r3 Profile Picture
    AX 2012 r3 2,420 on at
    RE: Send Multiple lines in workflow Submit

    Hi all,
    With the Reply To Ievgen.You can submit Multi Records
    Here is the code Pic

    SubmitNew.png

    Thanks to ievgen.

    But they are asking Header level

    So,i am creating Header level and Please Ievgen feel free to reply

    Have a good day Ievgen

    Regards.

  • Verified answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Send Multiple lines in workflow Submit

    I don't have ready to use solution for you, but could point to resources that should help you.

    Blog post about multi select on form data source daxmusings.codecrib.com/.../multi-select-on-form-datasource-grid.html

    Blog post about adding form controls in runtime blogs.msdn.microsoft.com/.../using-x-to-add-a-control-at-runtime

    So there is already a class that handle submission and you can either modify it to add logic for multi select or create new one.

    Then you need to change button property to allow multi select and point it to new class, if you create one.

    To see how AX creates this button please review SysSetupFormRun.updateworkflowcontrols() and SysSetupFormRun.initWorkflowControls() methods.

  • AX 2012 r3 Profile Picture
    AX 2012 r3 2,420 on at
    RE: Send Multiple lines in workflow Submit

    Hi Ievgen,

    i waited for your reply.Thats why i created a new thread.

    Sorry for that.

    Ievgen can you please give me any example

    "To customize this you need to create your own class that could handle submission of multiple records and change menu item of submit button in runtime to point to new class."

    Regards.

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

News and Announcements

Forum Structure Changes Coming Soon!

Quick Links

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,734 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,021 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,150

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans