locked
CRM 2011: display ribbon button based on user RRS feed

  • Question

  • Hi all,

    Is there anyway to display a custom ribbon button based on logged user and not the security, i.e I have many users with the same security role but I need to display a custom button for a specific user and not for all of them

     

    Please advise..

    Tuesday, January 31, 2012 11:15 PM

Answers

  • Hi,

           The solution is not very recommended but I think for DISPLAY, you can valueRule,
      
              1. put a hidden field on the Entity Form and on load fill the field with the user ID (xrm.page.getUserId())
              2. In display rule use value rule if the field value matches your specific user id value don't display.

             
            Another solutiion can be Enable rule, use CustomRule

               1. Create a webresource/javascript function and return true if user matches.
              
               see the CRM SDK for details search for 'Define Ribbon Enable Rules' 


    Cheers,


    Hassan
    Wednesday, February 1, 2012 2:17 AM