locked
How do I globally identify a CRM 2011 Organization across platforms? RRS feed

  • Question

  • Hi. I need to globally identify an organization in CRM 2011 across all platforms (onpremise, online and online through Office 365).

    Using Organization Unique Name does not work as this is just the Friendly Name in office 365 and onpremise-organizations.

    I could use OrganizationID but this value is tricky to obtain in client side code (which I need to), and as far as I can tell this value is still not unique if a server is duplicated say between production, testing and development environments.

    So how do I globally identify an organization in a unique way?

    Thursday, November 1, 2012 11:13 AM

All replies

  • I think the simple answer is that you can't. As it's possible to duplicate an organisation by backup/restore, there's no way to ensure that any piece of data differs between copies of the organisation.


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Thursday, November 1, 2012 1:03 PM
    Moderator
  • Do you have any general design patterns as to how to assign a unique ID to an organization then? I have a situation in which I need them to send the ID with them whenever they call my services, but I also need them to be able to just install my solution and not have to change my Web Resources to contain a certain ID (they contain a button usually that leads to my cloud-stored services in web-page-format)

    Thursday, November 1, 2012 1:09 PM
  • I don't think you can guarantee that the organization ID is unique. What I'd suggest you do is generate a unique ID (I'd use a Guid) when they register / buy your solution, and either store it in a filed in a custom entity, or embedded in an XML web resource

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Thursday, November 1, 2012 7:39 PM
    Moderator