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)

Need to restore the deleted button "Close as WON" and "Close as Lost" on Opportunity Form

(0) ShareShare
ReportReport
Posted on by 340

Hi,

I need to restore the deleted buttons "Close as WON" and "Close as Lost" on Opportunity Form . 

I am also using ribbon workbench managed solution.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Karsten Wirl Profile Picture
    4,477 on at

    Hello Amiy.

    Please use Ribbon Workbench to check whether the buttons still existing. I suppose that they are only hidden.

    Kind regards,

    Karsten

  • Amiy  Profile Picture
    340 on at

    Hi Karsten,

    I already checked the Ribbon Workbench . The buttton's dont exist , they have been deleted . Is their any way to restore them back

  • Karsten Wirl Profile Picture
    4,477 on at

    That are bad news... You will have to rebuild the two buttons.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    did you took a look at this solution. ribbonworkbench.uservoice.com/.../235292-restore-a-button-that-has-been-removed-from-the-cr ?

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    Hmm if it was deleted it seems that Scott Durow (the creator of the Ribbon workbench) states that it is gone for ever: community.dynamics.com/.../216313

    I think the only possiblity for you would be to open a trial instance in the correct version (the one that you have) and export from there the ribbon of opportunity. Of course it will be the OOTB ribbon thus you will loose your other customizations

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    Did you just hide the buttons, or did you actually customize the command of the button?

    If you open ribbon workbench for the Opportunity entity, and expand the "Hide Actions" (central pane under the command bars), you should see any commands that were hidden.

    You should see the MarkAsWon and MarkAsLost command there.

    Right click on them, and select Un-Hide.

    Publish your solution after that.

    Hope this helps.

  • Amiy  Profile Picture
    340 on at

    Hi Aric,

    There are no commands under Hide Actions , I already checked this .

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    Yes, I saw that after my reply. Starting replying and got called in for something else.

    I think the link the Guillaume posted might help you out.

    You should get the button information from a different uncustomized instance and recreate it.

    If this is an unmanaged solution, you might try export it from a different instance and import to your current instance, or just recreate the buttons using the same buttons, properties, commands, display rules and enable rules as the one in the original instance.

    Hope this helps. Good luck.

  • Suggested answer
    Community Member Profile Picture
    on at

    The easiest way to fix this is spin up a trial or get access to another environment that has the buttons.  Just copy everything exactly using the ribbon workbench and the buttons will work as if they had never been removed.

    Here is the xml if you want to take that approach

       <CustomAction Id="new.Mscrm.Form.opportunity.MarkAsWon.CustomAction" Location="Mscrm.Form.opportunity.MainTab.Actions.Controls._children" Sequence="3">

         <CommandUIDefinition>

           <Button Alt="$Resources:Ribbon.Form.opportunity.MainTab.Actions.MarkAsWon" Command="Mscrm.Form.opportunity.MarkAsWon" Id="Mscrm.Form.opportunity.MarkAsWon" Image32by32="/_imgs/SFA/MarkAsWon_32.png" Image16by16="/_imgs/SFA/MarkAsWon_16.png" LabelText="$Resources:Ribbon.Form.opportunity.MainTab.Actions.MarkAsWon" Sequence="3" TemplateAlias="o1" ToolTipTitle="$Resources:Mscrm_Form_opportunity_MainTab_Actions_MarkAsWon_ToolTipTitle" ToolTipDescription="$Resources:Mscrm_Form_opportunity_MainTab_Actions_MarkAsWon_ToolTipDescription" ModernImage="MarkAsWon" />

         </CommandUIDefinition>

       </CustomAction>

       <CustomAction Id="new.Mscrm.Form.opportunity.MarkAsLost.CustomAction" Location="Mscrm.Form.opportunity.MainTab.Actions.Controls._children" Sequence="4">

         <CommandUIDefinition>

           <Button Alt="$Resources:Ribbon.Form.opportunity.MainTab.Actions.MarkAsLost" Command="Mscrm.Form.opportunity.MarkAsLost" Id="Mscrm.Form.opportunity.MarkAsLost" Image32by32="/_imgs/SFA/MarkAsLost_32.png" Image16by16="/_imgs/SFA/MarkAsLost_16.png" LabelText="$Resources:Ribbon.Form.opportunity.MainTab.Actions.MarkAsLost" Sequence="4" TemplateAlias="o1" ToolTipTitle="$Resources:Mscrm_Form_opportunity_MainTab_Actions_MarkAsLost_ToolTipTitle" ToolTipDescription="$Resources:Mscrm_Form_opportunity_MainTab_Actions_MarkAsLost_ToolTipDescription" ModernImage="MarkAsLost" />

         </CommandUIDefinition>

       </CustomAction>

       </CommandDefinition>

       <CommandDefinition Id="Mscrm.Form.opportunity.MarkAsWon">

         <EnableRules>

           <EnableRule Id="Mscrm.CanWritePrimary" />

           <EnableRule Id="Mscrm.OpportunityIsOpen" />

           <EnableRule Id="Mscrm.IsAvailableInMocaOffline" />

         </EnableRules>

         <DisplayRules>

           <DisplayRule Id="Mscrm.CanWriteOpportunity" />

         </DisplayRules>

         <Actions>

           <JavaScriptFunction FunctionName="Mscrm.OpportunityCommandActions.opportunityClose" Library="$webresource:Opportunity_main_system_library.js">

             <BoolParameter Value="true" />

           </JavaScriptFunction>

         </Actions>

       </CommandDefinition>

       <CommandDefinition Id="Mscrm.Form.opportunity.MarkAsLost">

         <EnableRules>

           <EnableRule Id="Mscrm.CanWritePrimary" />

           <EnableRule Id="Mscrm.OpportunityIsOpen" />

           <EnableRule Id="Mscrm.IsAvailableInMocaOffline" />

         </EnableRules>

         <DisplayRules>

           <DisplayRule Id="Mscrm.CanWriteOpportunity" />

         </DisplayRules>

         <Actions>

           <JavaScriptFunction FunctionName="Mscrm.OpportunityCommandActions.opportunityClose" Library="$webresource:Opportunity_main_system_library.js">

             <BoolParameter Value="false" />

           </JavaScriptFunction>

         </Actions>

       </CommandDefinition>

  • Suggested answer
    Syed Ibrahim Profile Picture
    6,257 on at

    Either you create custom buttons for delete or import from a trial Instance for the opportunity alone(you will loose your custom buttons created) then you need to recreate all your custom buttons.

    Hope this helps

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