locked
Custom Entity Type Code RRS feed

  • Question

  • MSDN Said:(http://msdn.microsoft.com/en-us/library/bb887791.aspx)

    Note that custom entity object type codes may change during import and are not guaranteed to be the same between systems.

    Anyone has see this changes during your import? and why?

    So for It works good to me, Just wondering the potential risk and how can I guarent this, because lots link for view and form relied on it.

    Thanks

    Wednesday, September 1, 2010 3:31 PM

Answers

  • This gets chnaged in import becuase current envrionment might have current entity code might already been used or more then one new entities might be imported togather...

    for e.g. assume you live envrionment where last entity type code was 40 and same as the case the Dev system..

    now you create three new entities on dev system

    new 1 - Entity code 41

    new 2 - Entity code 42

    new 0 - Entity code 43..

    now when this is imported assuming new 0 get created first on live envrionment then live envrionment will look as below

    new 0 - entity code 41

    new 1 - entity code 42

    new 2 - entity code 43..

     

    HTH..


    MayankP My Blog My twitter
    • Marked as answer by NewCRM5 Wednesday, September 1, 2010 4:33 PM
    Wednesday, September 1, 2010 3:50 PM
    Answerer

All replies

  • I had some experience where the entities where not imported in the same order as they were created on the development server

    It was in CRM 3.0

    I'm not sure I reproduced that issue with CRM 4.0


    My blog : http://mscrmtools.blogspot.com

    All my tools on my new dedicated site: MSCRMTools Repository
    Wednesday, September 1, 2010 3:34 PM
    Moderator
  • It seems it's depend on number of entities in your environment, better to use entity typename instead of typecode in your development
    Mahain : http://mahenderpal.wordpress.com
    Wednesday, September 1, 2010 3:34 PM
    Moderator
  • Thanks all, and Maheder Pal,

    I'd like to use entity typename, but most link using etc=xxx. Not sure etn works in this case.

    BTW, Can I say it will be guaranteed if I do import all customization at same time?

    Wednesday, September 1, 2010 3:47 PM
  • This gets chnaged in import becuase current envrionment might have current entity code might already been used or more then one new entities might be imported togather...

    for e.g. assume you live envrionment where last entity type code was 40 and same as the case the Dev system..

    now you create three new entities on dev system

    new 1 - Entity code 41

    new 2 - Entity code 42

    new 0 - Entity code 43..

    now when this is imported assuming new 0 get created first on live envrionment then live envrionment will look as below

    new 0 - entity code 41

    new 1 - entity code 42

    new 2 - entity code 43..

     

    HTH..


    MayankP My Blog My twitter
    • Marked as answer by NewCRM5 Wednesday, September 1, 2010 4:33 PM
    Wednesday, September 1, 2010 3:50 PM
    Answerer
  • it will work, you can check, replace etc with etn and and use typename


    Mahain : http://mahenderpal.wordpress.com
    Wednesday, September 1, 2010 3:54 PM
    Moderator