Tenant name

The tenant name property of the Context object is used only when Web Services for Microsoft Dynamics GP has been installed for a multitenant configuration. If supplied, this property specifies the tenant for which the Microsoft Dynamics GP web service will be accessed.

If you don't supply a tenant name, and the Dynamics GP web service is deployed in a multitenant configuration, the web service will attempt to determine the correct tenant to use based on the user that is calling the web service. If the web service cannot resolve to a single tenant, an exception will be thrown.

If you are writing your web service application so that it is tenant-aware, it is a good idea to supply the tenant name with the Context object when the value is known. This will speed up the performance of the application because the Dynamics GP web service will not need to look up the tenant that the user is assigned to.