Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id : NfT99RobP/xgmhjtc5dacz
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Where is the label of Ribbon Button is internally stored in the CRM...?

Like (2) ShareShare
ReportReport
Posted on 31 Jan 2025 21:10:12 by 6

Hi Guys, 


I would like to read (by C#, but not in plugin) the Ribbon Button Label (HomepageGrid and Form) of some specific entities like "Account", "Contact", "Lead", "Quote", "Product" and so on. So far, i couldn't find the exact label
text of the Ribbon Button.

This is from the RibbonDefinitions XML of Account entity. In the LabelText, it references to some resources with a key "Ribbon.HomepageGrid.account.Record.Status.Activate". But, unfortunately i couldn't locate the source.

"<Button Id="Mscrm.HomepageGrid.account.Activate" ToolTipTitle="$Resources:Ribbon.HomepageGrid.account.Record.Status.Activate"
ToolTipDescription="$Resources(EntityPluralDisplayName):Ribbon.Tooltip.Activate" Command="Mscrm.HomepageGrid.Activate" Sequence="30"
Alt="$Resources:Ribbon.HomepageGrid.account.Record.Status.Activate" LabelText="$Resources:Ribbon.HomepageGrid.account.Record.Status.Activate"
Image16by16="/_imgs/ribbon/Activate_16.png" Image32by32="/_imgs/ribbon/Activate_32.png" TemplateAlias="o2" ModernImage="Activate" SolutionUniqueName="System" />"


Anyone knows where these $Resources file internally stored for any entities and can we read the Label text for different language code from C# code....?


Any advice, tips, or experiences would be very helpful. Thank you in advance!

  • CU31012052-1 Profile Picture
    CU31012052-1 6 on 04 Feb 2025 at 10:56:43
    Where is the label of Ribbon Button is internally stored in the CRM...?
    Hi @bscarlavai33, Thanks for your response. 

    I have already tried the RetrieveApplicationRibbonRequest and RetrieveEntityRibbonRequest, but the response from these two request didn't serve my purpose as there's no explicit Button Label text there, only the reference.

    This is the response from RetrieveEntityRibbonRequest for the Account entity. And this is just an example for the Activate button in the RibbonDefinition.XML for the HomePageGrid.  

    See here in the LabelText, there is no explicit label text for this Activate button, only a reference named "$Resources:Ribbon.HomepageGrid.account.Record.Status.Activate"

    "<Button Id="Mscrm.HomepageGrid.account.Activate" ToolTipTitle="$Resources:Ribbon.HomepageGrid.account.Record.Status.Activate"
    ToolTipDescription="$Resources(EntityPluralDisplayName):Ribbon.Tooltip.Activate" Command="Mscrm.HomepageGrid.Activate" Sequence="30"
    Alt="$Resources:Ribbon.HomepageGrid.account.Record.Status.Activate" LabelText="$Resources:Ribbon.HomepageGrid.account.Record.Status.Activate"
    Image16by16="/_imgs/ribbon/Activate_16.png" Image32by32="/_imgs/ribbon/Activate_32.png" TemplateAlias="o2" ModernImage="Activate" SolutionUniqueName="System" />"

    So, I am trying to figure out how can I retrieve the Activate button label text from C#, based on the $Resources reference. As of now, I have no concrete idea how to achieve that. 
  • bscarlavai33 Profile Picture
    bscarlavai33 5 on 04 Feb 2025 at 00:16:41
    Where is the label of Ribbon Button is internally stored in the CRM...?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,313 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans