Access discovery service from plugin to retrieve server url RRS feed

  • Question

  • Basically what I need is to retrieve the org url from a custom activity.
    The reason is simple: merge it into some text and send an email, all from code.
    I understand I can just pass it as a input parameter but the idea is to avoid the extra configuration in every install.
    Also, I want to write something that will run on CRM Online.

    I couldn't figure a way to instantiate the discovery service from a plugin so, is it even possible?
    The OrganizationServiceProxy object also exposes the endpoit Uri which I could use but I couldn't instantiate it either, it appears that I can only get OrganizationService instead.

    Any ideas?

    Thanks in advance. 

    Thursday, August 7, 2014 12:53 PM