Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

How to run two different action menu item with a single button on a form

Posted on by Microsoft Employee

I have two classes working fine 

and for those classes i have created action menu item..

those action menu item i have added on form and working fine 

now i want replace those button with single button 

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    RE: How to run two different action menu item with a single button on a form

    Create a class with main() method and point the action menu item into it. Use this menu item in the form.

    In main(), call your two classes.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to run two different action menu item with a single button on a form

    they need to be executed at the same time

    only the issue is form is list page

  • Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    RE: How to run two different action menu item with a single button on a form

    If you have a single button doing two different things, how will you decide which one should be executed (i.e. which class should be called)?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans