CRM 4: Multi-tenancy and Organisation Name

已答复 CRM 4: Multi-tenancy and Organisation Name

  • martedì 9 settembre 2008 06:49
     
     

    We have a single instance of Microsoft CRM 4 running on the server where a multi-tenancy environment has been created to host multiple organisations. We are unable to identify the organisations name at runtime (other than in the URL) which is required to call web service methods to retrieve information used for customisations. Are there any cleaner solutions, other than making multiple calls to web services based on the user’s identity to retrieve the organisations name? Thanks Smile

Tutte le risposte

  • martedì 9 settembre 2008 13:38
     
     Con risposta

     

    We can retreive the orgname like this:

     

    Code Snippet

    System.Web.HttpContext.Current.Items["organizationName"]