Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

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.

  • Apratim Profile Picture
    Apratim 139 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,274 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.

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

    It's working for only one record because under the hood it does not have logic to loop through selected records.

    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.

    However, if you need to submit header, not lines, you don't need to bother with multi select at all. 

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

    Hi paranjothi,

    Hope you are fine.

    yes i have done that

    But that is working for only one record

    If i select Multi record i am unable to send.

    That too they enter many lines.so they wont wait for each and every line approval.

    So,thats why i want to submit all at once.

    Please Suggest.

    Regards

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,663 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,750 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans