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 :
Microsoft Dynamics CRM (Archived)

How to Use Existing Ribbon Button Command with a Custom button

(0) ShareShare
ReportReport
Posted on by 165

Hi All,

I want to place custom Import Button on Account form that should exactly behave like Import Data button of Account's Home Page. Could someone please suggest how can we use the existing system commands with custom button.

Thanks in Advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi,

    What you can do is:

    1. Create a solution containing the account entity

    2. Load the solution into the Ribbon Workbench

    3. Drag a new button onto the form command bar

    4. Set the button image/label etc.

    5. Set the Command  Core property to be the 'Mscrm.ImportData'

    6. Publish solution

    Hope this answers your question!

  • Sahil Profile Picture
    165 on at

    Hi Scott,

    Did exactly same already but Ribbon Workbench threw an error related to some SOAP Envelope message.

  • Sahil Profile Picture
    165 on at

    However, After some analysis I was able to find out the Wizard Id of Data Import wizard and I directly opened the Data Import Wizard in a dialog passing the wizard Id as a query string in URL.

  • ScottDurow Profile Picture
    21 on at

    Hi,

    Well done!

    What version of the RIbbon Workbench were you using? Did you try the XrmToolbox version? Do you have the exact SOAP error you got?

    I just tried running the steps I gave above and they worked.

    Thanks,

    Scott

  • Kjetil Dahl Knutsen Profile Picture
    150 on at

    Hi,

    I have a similar issue. I'm able to create the button in Ribbon Workbench 2016 (Dynamics 2016) and the button appears in the form view for my entity, but no action is started when I click the button...

    6201.Skjermbilde.PNG

    Regards

    Kjetil

  • Community Member Profile Picture
    on at

    Try publishing a second time since occasionally Dynamics CRM doesn't clear it's cache the first time. Also clear all browser cache and and open your dev tools (if in chrome) and click settings and under Network>Disable cache(while DevTools is open)

  • Suggested answer
    Iswarya Profile Picture
    1,347 on at

    Hi Kjetil,

    as per your screenshot you didn't select your command.

  • Kjetil Dahl Knutsen Profile Picture
    150 on at

    Hi,

    I'm using the CommandCore, do I need to define a command for that?

  • Community Member Profile Picture
    on at

    You don't, but you might not have to have that webresource in the formxml. Ie. turn on your browser debugger and click pause on all exceptions.

    When I click "Customise Command" on my import button is in: $Webresource:Ribbon_main_system_library.js with function name: Mscrm.ImportData_0.

    Just try to javascript debugger to see where it tries to execute that command.

  • Kjetil Dahl Knutsen Profile Picture
    150 on at

    Hi,

    I cant find the $Webresource:Ribbon_main_system_library.js in my system.

    Using Ribbon Workbench 2016 (3.1.86.1)

    Dynamics 365 Version 1612 (8.2.2.111) (DB 8.2.2.111) online

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans