Where to find Server Address And Organization Name in plugin?
If you would create client application which use OrganizationServiceProxy answer to question is easy: var proxy = service as OrganizationServiceProxy; var scheme = proxy.EndpointSwitch.PrimaryEndpoint.Scheme; var serverAddress = proxy.EndpointSwitch.PrimaryEndpoint.Host; var organizationName = proxy.EndpointSwitch.PrimaryEndpoint.Segments.Length < 2 ? UndefinedValue : proxy.EndpointSwitch.PrimaryEndpoint.Segments[1].Replace("/", string.Empty); If you use LocalPluginContext organization name is available: localContext.PluginExecutionContext.OrganizationName But, what with other parameters, ex. servername […]