locked
connect from one mscrm online to another mscrm online through plugin RRS feed

  • Question

  • Dear all;

    i want to connect from one mscrm online to another mscrm online through plugin for example

    i have a plugin which is registered on create on the account in that plugin i need to connect to another mscrm and verify the something is it possible??

    Thursday, April 9, 2015 12:14 PM

All replies

  • Hi,

    try to use this in plugin:

    ClientCredentials credentials = new ClientCredentials();
    credentials.Windows.ClientCredential = new System.Net.NetworkCredential("USER", "Password", "Domain");
    Uri uri = new Uri("http://server/Organization/XRMServices/2011/Organization.svc");
    OrganizationServiceProxy proxy = new OrganizationServiceProxy(uri, null, credentials, null);
    proxy.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());
    IOrganizationService service = (IOrganizationService)proxy;
    

    Thursday, April 9, 2015 12:26 PM
  • Hi ;

    Thanks for reply both are online system

    Thursday, April 9, 2015 12:41 PM
  • In CRM online, as i can see it will be only one difference: connection to CRM.

    In this article described, How to connect to CRM online:

    https://msdn.microsoft.com/en-us/library/jj602970.aspx


    Thursday, April 9, 2015 2:48 PM