locked
Limit Views In CRM 2011 Solution RRS feed

  • Question

  • I have a solution in CRM 2011 that will later be deployed to another system. As part of this solution I need to limit the views of the various entities based on the security role (preferred) or teams. One solution is

    * Deactivate all the default views
    * Create various personal views and share them with certain teams.

    The problem with this approach is that I cannot deploy it as part of my solution. Instead I have to create those views on the computer where the solution is deployed and then share them. Is there a way to achieve this as part of my solution?

    Tuesday, April 23, 2013 10:22 PM

Answers

  • Hi,

        It is not possible to delete views as part of solution but you can put this as part of pre/post deployment step. Also you can create an automated build process which takes care of deploying your solution to the new organization and perform this action in code.

    Here is the link to the sample code.

    http://msdn.microsoft.com/en-us/library/gg594431.aspx

    SDK has samples to deploy the solution in automated manner from command prompt.


    Hope this helps.
     
    -----------------------------------------------------------------------
     Minal Dahiya
     
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    Wednesday, April 24, 2013 2:49 AM