locked
easiest way to identify underlying org service url for OrganizationServiceProxy? RRS feed

  • Question

  • Hello, what's the easiest way to identify the org service url based on an OrganizationServiceProxy?  In other words, if I'm debugging code using an instantiated OrganizationServiceProxy, then how can I set a watch to easily determine the org service url that the OrganizationServiceProxy was instantiated with?

    Thursday, November 7, 2013 12:37 AM

All replies

  • Hello,

    You could write like as below to get Org. service URL :

    (((Microsoft.Xrm.Sdk.Client.ServiceProxy<Microsoft.Xrm.Sdk.IOrganizationService>)(orgProxy)).EndpointSwitch).PrimaryEndpoint


    Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !
    Vikram !

    Thursday, November 7, 2013 2:44 AM