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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Creating a custom button for Dynamics 365

(0) ShareShare
ReportReport
Posted on by

My requirement is to create a custom button which would be part of a dyanmic 365 package. Then it will be up to the user to add that button or not.On the click of that button some javascript function will be called.Is this someting which I can create in Microsoft Powerapps? Can someone please guide me in which direction should I proceed.

Categories:
I have the same question (0)
  • Suggested answer
    T.I.A Profile Picture
    1,760 on at

    Download the ribbon workbench, this will help you do exactly what you need to do.

    www.develop1.net/.../ribbonworkbench.aspx 

    https://community.dynamics.com/crm/b/briteglobalsolutions/archive/2017/10/22/creating-a-ribbon-button-using-ribbon-workbench-to-call-a-javascript-action


    My requirement is to create a custom button which would be part of a dynamic 365 package. With this you can have a check box on your entity that the user can click to specify they want to see the button. Then use a value rule in a display rule to specify when it should be shown. 

    https://www.youtube.com/watch?v=5_gnIQGLL0M Scott Durow has video tutorials on this to help you every step of the way

  • Community Member Profile Picture
    on at

    Thanks T.I.A for the reply. How can I allow user to place button at his desried location?

  • Suggested answer
    T.I.A Profile Picture
    1,760 on at

    The ribbon button position is static by design. Users wont be able to place it where they want. Only the designer can specify where it will live on the ribbon. The position fortunately doesn't have to be permanent. 

    rib.PNG

    Like an example here is that you could put your button in between Export To Excel and Import Data. The user couldn't say "hey, actually I like it between Email A Link and Run Report and then move it themselves. 

  • Kokulan Profile Picture
    18,054 on at

    Hi

    Just wanted to add this bit to what's already been suggested.

    I would recommend you use the Enable Rule instead of Display Rule.  In my experience, the Command Bar seems to ignore what the display Rule says and only displays the button if it's enabled.  The primary reason is obviously saving real-estate in the command bar area. Display rule works on old Ribbons but ignored in the new Command Bars.

    If you are interested in reading about the difference between Ribbon Bar and Command Bar, though the article is a bit old one but still useful to read

    community.dynamics.com/.../4-things-you-need-to-know-about-the-command-bar

  • Community Member Profile Picture
    on at

    Thanks everyone for the suggestions.I am working on something which has already been implemented in Salesforce and I am very new to Microsoft Dynamnics. . In salesforce  we have provided an action with type button in Mobile & Lightning Actions and administrators can place it at their desired location while editing page layouts.Salesforce_5F00_Page_5F00_Layout.png

  • T.I.A Profile Picture
    1,760 on at

    In Dynamics buttons typically live in the ribbon.  if you wanted the button on the form you could use html in web resource.

  • Community Member Profile Picture
    on at

    .

  • Community Member Profile Picture
    on at

    @T.I.A If buttons can only reside on ribbon,  I have no issue with that. I need to allow the user to place button on any form of his choice.

  • T.I.A Profile Picture
    1,760 on at

    The forms you can put that on are forms of the same entity and the user can't decide, only an admin or someone with the right permission can.

  • Community Member Profile Picture
    on at

    @T.I.A I jut need a button , on the click of which a Javascript function will be called.A user with the appropriate permission should be able to put it anywhere on the command bar on any entity.

    That button along with the associated javascript command should be available beforehand and user should only have to put it on the appropriate place.Can you please guide about the steps to achieve

    the desired behavior or anything close to that.

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans