Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Ribbon Workbench Button Not working when clicked

(0) ShareShare
ReportReport
Posted on by 105

Hi All,

I've copied an existing ribbon button from the Form to Main Ribbon of Order Entity. 

The button invokes an On Demand workflow, using Mscrm.CommandBarActions.launchOnDemandWorkflowForm. This uses the GUID of the workflow. The original button from which I have copied this new button, it works fine and the workflow is applied to the record.

But when I click the new button, it does not do anything It uses the same command as the old button. I've attached the screenshot of the setup here.

 Can you guys please me understand what could be the issue here ?

Command1.png

Command2.png

Thanks!!

  • Toly Rogers Profile Picture
    105 on at
    RE: Ribbon Workbench Button Not working when clicked

    Function.png

    Hi Lu,

    Yes the function is Mscrm.CommandBarActions.launchOnDemandWorkflowForm, which is OOB function to trigger the On Demand workflow. It takes the GUID of the workflow as input.

    I've verified the parameter is passed to the function, I'm attaching screenshot below.

    I've published the solution and refreshed the page, but it does not work.

    Any ideas on how to get past this?

  • LuHao Profile Picture
    40,886 on at
    RE: Ribbon Workbench Button Not working when clicked

    Hi Toly,

    What is your functions looks like? Does it have any parameters? If you do, please also remember to pass the parameters.

    Please check if the JavaScript selector of the button you copied is also applicable in Main Ribbon of Order Entity.

    Could you show more information and clearer screenshot about the button?

    Also, refresh an opened page with CRTL+F5 after making changes and republish ribbons or js web resource.

    Hope this helps.

    Best Regards,

    Lu Hao

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

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 > Dynamics 365 general forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans