web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

DeActivate OOB Functionality

(0) ShareShare
ReportReport
Posted on by 189

Hi  i  want to hide  GetPoduct button from quoteline entity i have tried from ribbion workbench but  it is not gettin hide. so any  other solutions of this please reply.

I have the same question (0)
  • LuHao Profile Picture
    40,892 on at

    Hi aakash,

    I successfully hide the GetPoduct button in UCI using the ribbion workbench.

    pastedimage1579076548724v1.png

    After opening the quoteline entity solution in the ribbion workbench, switch to TABLET.

    pastedimage1579076714138v4.png

    Then find $LocLabels:Ribbon.Form.MainTab.Actions.GetProducts in the buttons of SubGrid, right-click it and click Hide.

    pastedimage1579076686586v3.png

    Mscrm.SubGrid.quotedetail.GetProducts.UCI will appear in HIDE ACTIONS. Publish it.

    pastedimage1579076811347v5.png

    The GetPoduct button in the web client (classic UI) cannot be hidden.

  • Community Member Profile Picture
    on at

    Step 1:

    Add the account entity having that button in a solution along with a javascript library

    Step 2:

    Open that solution using ribbon workbench as shown below:

    Step 3:

    Right click on the deactivate button and click on customize command.

    Step 4:

    Now click on deactivate command and change the library to your javascript library i.e. “new_account”. Also copy the function being called on that command (ref 3 in below screen shot). This function will be used in out javascript function. It’s “Mscrm.CommandBarActions.changeState” in our case.

    Step 5:

    Replace the oob function with your function name (“overridedeactivatebtn” in our case)

    Keep in mind here 3 parameters are being passed. We’ll pass these three parameters when we’ll call oob function “Mscrm.CommandBarActions.changeState” from our js fucntion.

    Step 6:

    Publish the solution in ribbon workbench.

    Step 6:

    In new_account library, overridedeactivatebtn function will have below code.

    function overridedeactivatebtn(parm1,parm2,parm3)

    {

     var phone= Xrm.Page.getAttribute("telephone1").getValue() ;

     if(phone!=null)

     {

     alert("Can't deactivate account having phone number.");

     }

     else

     {

     Mscrm.CommandBarActions.changeState(parm1,parm2,parm3);

     }

    }

    Publish your javascript library.

    Step 7:

    To test click on deactivate button on account record having value in phone number field and you’ll get the alert message and no oob pop up of deactivation.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 196 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans