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)

Add Button in Ribbon using customize xml

(0) ShareShare
ReportReport
Posted on by

Hi,

I want to add a button in ribbon on the form using customization.xml.

I add this code:

<RibbonDiffXml>
<CustomActions>
<CustomAction Id="Mscrm.HomepageGrid.new_movie.MovieRevenue.CustomAction"
Location="Mscrm.Form.new_movie.MainTab.Collaborate.Controls._children">
<CommandUIDefinition>
<Button Id="Mscrm.HomepageGrid.new_movie.MovieRevenue.Button"
Command="Mscrm.HomepageGrid.new_movie.MovieRevenue.Command"
Sequence="10"
LabelText="GetContacts"
ToolTipTitle="Associated Contacts"
ToolTipDescription="Get contcts from account"
TemplateAlias="01" />
</CommandUIDefinition>
</CustomAction>
</CustomActions>
<Templates>
<RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
</Templates>
<CommandDefinitions>
<CommandDefinition Id="Mscrm.HomepageGrid.new_movie.MovieRevenue.Command">
<EnableRules />
<DisplayRules />
<Actions />
</CommandDefinition>
</CommandDefinitions>
<RuleDefinitions>
<TabDisplayRules />
<DisplayRules />
<EnableRules />
</RuleDefinitions>
<LocLabels />
</RibbonDiffXml>

When i am import they give the error "The solution file is invalid. The compressed file must contain the following files at its root: solution.xml, customizations.xml, and [Content_Types].xml. Customization files exported from previous versions of Microsoft Dynamics 365 are not supported."

Please give me suggestion.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Jan Gracelin Jeno Profile Picture
    150 on at

    Hi,

    I think you have a folder inside the Zipped solution and the solution contents are contained in that folder.

    Try to add all the solution components and folders in first level folder itself.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    Why don't you try to achieve it by using the RibbonWorkbench: www.develop1.net/.../ribbonworkbench.aspx

    It will be far more easier for you!

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