Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8990691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:33:19+00:00 2026-06-15T22:33:19+00:00

Can any one help me to create a ribbon button dynamically in CRM 2011.

  • 0

Can any one help me to create a ribbon button dynamically in CRM 2011. The scenario is, when we create a record, one ribbon button has to be created dynamically based the optionset value selected in that record. Can we get it work using JScript or Plug-in or Workflow? Enable or Display rules are not useful here and should not touch XML code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:33:21+00:00Added an answer on June 15, 2026 at 10:33 pm

    We can get it done by two ways-

    Through plug-in:(Note: It won’t works in Sandbox mode and consume some time.)

    • Create one solution and add specified entity to it. Go through the source code here

    • Export this solution to Temp folder and unzip it.

    • Edit customizations.xml file to add our own RibbondiffXml tag.

    • Zip all the XML files and Import it to CRM.

    • Publish the Customization.

    Through XML edit:

    • Export Application Ribbon, update XML to add button and replace entity name with {!EntityLogicalName} in all the places.
      Ex: <CustomAction Id="New.{!EntityLogicalName}.MyButton.CustomAction" Location="Mscrm.HomepageGrid.{!EntityLogicalName}.MainTab.Management.Controls._children" Sequence="70">…
    • Add EnableRule to enable this button only if Config record exist for current entity.

      <EnableRule Id="New.{!EntityLogicalName}.MyButton.Check">
      <CustomRule FunctionName="checkConfigRecord" Library="$webresource:new_/Scripts/ValidateConfigRecords.js">
      <CrmParameter Value="SelectedEntityTypeName" />
      </CustomRule>
      </EnableRule>

    • Create one JavaScript library with name new_/Scripts/ValidateConfigRecords.js which contains function checkConfigRecord which counts config records exists for particular entity. If count is greater than 1 return true. Otherwise false.

    • Import the ApplicationRibbon Zipped file
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In CRM 2011 I want to create a new ribbon button that includes a
Can any one help me how to create an event in MySQL so that
Can any one help me for: How can we create copy of database? How
Possible Duplicate: Can any one help me, to create .apk file for google android
can any one help me on how can I create a query output using
Can any one help me in this error here's the code :- CREATE OR
I am using libtiff to create tif images. Can any one help how to
Can any one help in transforming my xml though XSLT. I am new to
Can any one help me, i already checked resizing demo but this work through
can any one help me with code that subtract 1 from a digit stored

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.