locked
Entities Class when using SDK RRS feed

  • Question

  • Hi Everyone,

    I've created a plugin and deployed it to our live environment (it was built in our test environment). I've noticed that the ObjectTypeCodes in my logs are different for the same entity. Is this because the plugin is using the ObjectTypeCodes in the entities class, which was generated in the test enviroment, where the ObjectTypeCode is different for the custom entity?

    Many thanks

    D

    Friday, June 12, 2015 9:15 AM

All replies

  • I assume this is different for custom entities in the systems, there is a possibility to get different ObjectTypeCode if you created the entites seperately on each system instead of using import/export, there is also a chance that if your systems are not exactly the same from the start (f.e. if someone at some time created an entity on your prod system but nothing was created on the test system) that the OTCs are different (f.e. if the number is already in use when importing).

    To the best of my knowledge the OTCs should stay the same during export import unless they are already in use on the system you are importing to.


    Halldór Jóhannsson

    Friday, June 12, 2015 9:43 AM
  • That is not accurate..

    System entities will always have the same OTC codes.
    Custom entities do not,  OTC's are generated based on the environment.

    As a general rule you should not depend on OTC codes at all, you should only look at ETN's ( Entity Type Names )

    mattb-msft

    Friday, June 12, 2015 3:14 PM