locked
how to change Ownership Type Mask crm 2011 from Organization to User RRS feed

  • Question

  • Hi all,
    Do you know the method to change the ownership of an entity?

    Basically, I did not know the difference between the two so I put Organisation but nowI need the option to share (GrantAccessResponse) but not with an entity with a type"organization".

    Thank you very much for your help.

    Cordially ,
    Tuesday, January 31, 2012 12:32 PM

Answers

All replies

  • Unfortunately the only way to change the Ownership Type of an entity is to delete the entity (and hence all the data), and to recreate it. The Ownership Type affects the system fields that are created (for example, an entity with an Ownership Type of 'User' will have an ownerid field) when the entity is created
    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    Tuesday, January 31, 2012 8:59 PM
    Moderator
  • Yes but the problem is that I have over 200 lines of records for that entity.

    How can your map the old lines with the new entity?
    Wednesday, February 1, 2012 9:49 AM
  • how about using excel export/import feature to migrate the records?
    daemon lin
    Wednesday, February 1, 2012 2:04 PM
  • Hi Do you still have this issues? Did you get the resolution of this?

    Thanks

    Fayz


    Fkhoja

    • Proposed as answer by Fkhoja Thursday, April 19, 2012 2:46 PM
    Tuesday, April 10, 2012 8:11 AM
  • Is it possible to (1) export the current solution, (2) delete the entity through the browser, (3) change the ownership, in the export from #2, from 'userOwned' to 'OrgOwned', then (4) re-import the solution?

    I am trying to follow the steps laid out in http://chitrarasan.wordpress.com/2010/12/28/change-entity-ownership/

    However, when I follow these steps I keep running into "Object reference not set to an instance of an object.", specifically on relationships. I am systematically removing relationships from customizations.xml, with the hope that the error will stop. Is there a possibility that this approach will eventually work?

    Cheers!

    Mark

    Tuesday, May 1, 2012 1:06 PM
  • Is it possible to (1) export the current solution, (2) delete the entity through the browser, (3) change the ownership, in the export from #2, from 'userOwned' to 'OrgOwned', then (4) re-import the solution?

    I am trying to follow the steps laid out in http://chitrarasan.wordpress.com/2010/12/28/change-entity-ownership/

    However, when I follow these steps I keep running into "Object reference not set to an instance of an object.", specifically on relationships. I am systematically removing relationships from customizations.xml, with the hope that the error will stop. Is there a possibility that this approach will eventually work?

    Cheers!

    Mark

    I wouldn't recommend this approach. It is an unsupported practice. Although it might work, you could get into trouble down the road. 

    The best way is to let CRM platform do the job for you. If you have any data in the system, you can export data to a database or even flat file such as .csv format. After you fix the customizations in the system, then you can import data back. 

    Hope this helps. 


    Daniel Cai | http://danielcai.blogspot.com | @danielwcai | Data Integration made easy with SSIS Integration Toolkit

    Tuesday, May 1, 2012 1:26 PM
  • As a follow-up, I succeeded in importing the update customizations.xml.

    The way I got it to work was to break up the import into 2 versions:

    Version 1 of the customizations.xml contains only the modified custom entity with ownershiptypemask set to 'OrgOwned'

    Version 2 of the customizations.xml also includes the entityrelationships.

    Cheers!

     
    Tuesday, May 1, 2012 3:07 PM
  • As a follow-up, I succeeded in importing the update customizations.xml.

    The way I got it to work was to break up the import into 2 versions:

    Version 1 of the customizations.xml contains only the modified custom entity with ownershiptypemask set to 'OrgOwned'

    Version 2 of the customizations.xml also includes the entityrelationships.

    Cheers! 

    Interesting to know. 

    Daniel Cai | http://danielcai.blogspot.com | @danielwcai | Data Integration made easy with SSIS Integration Toolkit

    Tuesday, May 1, 2012 4:26 PM
  • there is also an article by MSCRM Dynamics 2011 Tips about this  

     http://dynamics2011.blogspot.com/2012/04/crm-2011-changing-entity-from.html 

    hope it helps.

    Monday, January 7, 2013 12:15 PM
  • Hi Mark, I've got the same problem while importing the solution. Have you solved this and how do you imported the solution? Have you got it without delet the entity and data lost?
    Thursday, February 14, 2013 3:43 PM
  • Have anybody tried out the steps describe at the article? I've got the error 'Object reference not set to an instance of an object' every time while importing the modified solution.
    Thursday, February 14, 2013 3:46 PM
  •  Hi,

     Its usually something to do with the EntityReference section of the file or the Forms for the entities. It can be done but is somewhat cumbersome, I ended up writing a small utility for the purpose which changes the file.

    Thursday, July 31, 2014 6:52 AM