Monday, 9 January 2012

Renaming Lead Form Button "ReActivate Lead " To ReActivate Job Dockets"

 Renaming Lead Forms Ribbon Button "Reactivate Lead " To "ReActivate Job Dockets"
 Steps:
1) Create  a solution , add the lead entity to solution and export the soltuion.
2)Check the Button ids and sequence number from LeadRibbon (ie sdk/samplecode/cs/client/ribbonxml/bin/debug/exportribbonxml/leadribbon)

3)Extract the Exported file and open Customization.xml file in any xml editors
4)Search <RibbonDiffXml> under this   <CustomActions> paste the code...
<RibbonDiffXml>
  <CustomActions>
    <CustomAction Id="Mscrm.Form.lead.ReactivateLead.CustomAction" Location="Mscrm.Form.lead.MainTab.Actions.Controls._children" Sequence="6">
      <CommandUIDefinition>
        <Button Alt="$Resources:Ribbon.Form.opportunity.MainTab.Actions.Reactivate"
  Command="Mscrm.Form.lead.Reactivate" Id="Mscrm.Form.lead.ReactivateLead"
  Image32by32="/_imgs/ribbon/ReactivateLead_32.png"
  Image16by16="/_imgs/ribbon/ReactivateLead_16.png"
  LabelText="$LocLabels:Mscrm.Form.lead.ReactivateLead.LabelText"
  Sequence="6" TemplateAlias="o1" ToolTipTitle="$LocLabels:Mscrm.Form.lead.ReactivateLead.ToolTipTitle"
  ToolTipDescription="$LocLabels:Mscrm.Form.lead.ReactivateLead.ToolTipDescription" />
      </CommandUIDefinition>
    </CustomAction>
  </CustomActions>
  <Templates>
    <RibbonTemplates Id="Mscrm.Templates" />
  </Templates>
  <CommandDefinitions />
  <RuleDefinitions>
    <TabDisplayRules />
    <DisplayRules />
    <EnableRules />
  </RuleDefinitions>
  <LocLabels>
    <LocLabel Id="Mscrm.Form.lead.ReactivateLead.LabelText">
      <Titles>
        <Title description="ReActivate Job Dockets" languagecode="1033" />
      </Titles>
    </LocLabel>
    <LocLabel Id="Mscrm.Form.lead.ReactivateLead.ToolTipTitle">
      <Titles>
        <Title description="ReActivate Job Dockets" languagecode="1033" />
      </Titles>
    </LocLabel>
    <LocLabel Id="Mscrm.Form.lead.ReactivateLead.ToolTipDescription">
      <Titles>
        <Title description="ReActivate this lead to make it active and continue working on it." languagecode="1033" />
      </Titles>
    </LocLabel>
  </LocLabels>
</RibbonDiffXml>

ReNaming Entity Ribbon Button In MSCRM 2011

To hide the entities ribbon buttons form  the  homepage grid and form levels , first we need to check the button  form button id   and grids butt  id from ,
sdk/samplecode/cs/client/ribbon/exportribbonxml/bin/debug/exportedribbonxml/leadribbon

This code shows how to hide Lead entities forms ribbon button and grids ribbon button.
<RibbonDiffXml>
        <CustomActions>
<HideCustomAction Location="Mscrm.HomepageGrid.lead.ConvertLead"  // Button Id
              HideActionId="Mscrm.HomepageGrid.lead.ConvertLead.HideAction" />
    
  <HideCustomAction Location="Mscrm.Form.lead.ConvertLead"   // Button Id
              HideActionId="Mscrm.Form.lead.ConvertLead.HideAction" />   
 </CustomActions>
     ..............
</RibbonDiffXml>