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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Send Multiple lines in workflow Submit

(0) ShareShare
ReportReport
Posted on by 2,426

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

  • AX 2012 r3 Profile Picture
    2,426 on at

    Hi Crispin,

    i should create workflow at header level?

    Please suggest me

    Regards.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    Create workflow for the form

    Inventory management--> Journals--> Item Transaction--> Movement 

    Movement.JPG

    Make sure User should not allow to post the journal if workflow is not approved.

  • AX 2012 r3 Profile Picture
    2,426 on at

    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

  • Mea_ Profile Picture
    60,286 on at

    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
    2,426 on at

    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.

  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    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
    2,426 on at

    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.

  • AX 2012 r3 Profile Picture
    2,426 on at

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

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans