SharePoint: Add Ribbon Button in Connect & Export group and Share & Track group in SharePoint

I had a requirement to add a Ribbon button in SharePoint Connect & Export group and Share & Track group in List Tab.
The list here at MSDN helped me to use the correct ControlID. Following XML can be used to add a button in Connect & Export group in List Tab:


<CommandUIDefinition
     Location="Ribbon.List.Actions.Controls._children">
    <Button
         Id="Ribbon.List.Actions.Controls.ExportViewVersionHistory"
         Alt="Export version history of current list view to Microsoft Excel."
         LabelText="Export View Version History"
         Image16by16="/_layouts/images/NY.ExportVersionHistory/Excel_Small.png"
         Image32by32="/_layouts/images/NY.ExportVersionHistory/Excel_32.gif"
         Command="ExportViewVersionHistory"
         Sequence="99"
         TemplateAlias="o1"
         ToolTipTitle="Export View Version History"
         ToolTipDescription="Export version history of current list view to Microsoft Excel."/>
</CommandUIDefinition>

Similarly following XML can be used to add a button in Share & Track group in List Tab:


<CommandUIDefinition
    Location="Ribbon.List.Share.Controls._children">
    <Button
     Id="Ribbon.List.Share.Controls.ExportViewVersionHistory"
     Alt="Export version history of current list view to Microsoft Excel."
     LabelText="Export View Version History"
     Image16by16="/_layouts/images/NY.ExportVersionHistory/Excel_Small.png"
     Image32by32="/_layouts/images/NY.ExportVersionHistory/Excel_32.gif"
     Command="ExportViewVersionHistory"
     Sequence="99"
     TemplateAlias="o1"
     ToolTipTitle="Export View Version History"
     ToolTipDescription="Export version history of current list view to Microsoft Excel."/>
</CommandUIDefinition>

If we want to add button in Manage Views Group, the Location atttribute should be Ribbon.List.CustomViews.Controls._children

The button in Connect & Export group looks like this:





profile for Nadeem Yousuf at SharePoint Stack Exchange, Q&A for SharePoint enthusiasts

+