locked
CRM 2013-Azure Integration issue RRS feed

  • Question

  • Hi Friends,

    We are facing problem in CRM 2013-Azure Integration.

    Below lines explains the CRM 2013 –Azure integration.

    1. Plugin will read the data from CRM record and send the data to Azure Service Bus Queue.
    2. Azure worker role will read the data from service bus queue and send it to WCF service which will insert/update the data in Azure DB.

    When we call the send method to send the data to service bus queue we are getting “channel open did not complete within the specified timeout” error. Below is the code snippet of Azure Service Bus call.

    Uri runtimeUri = ServiceBusEnvironment.CreateServiceUri(ConfigurationManager.AppSettings["schemaName"], ConfigurationManager.AppSettings["serviceNamespace"], string.Empty);

    MessagingFactory mf = MessagingFactory.Create(runtimeUri,TokenProvider.CreateSharedAccessSignatureTokenProvider(ConfigurationManager.AppSettings["keyName"], ConfigurationManager.AppSettings["sharedAccessKey"]));

    sendClient = mf.CreateQueueClient(ConfigurationManager.AppSettings["queuePath"]);

    BrokeredMessage helloMessage = new BrokeredMessage(listofrecPersonToAppsMappingData(CRM data));

    helloMessage.MessageId = Guid.NewGuid().ToString();

    sendClient.Send(helloMessage);

    But when we do the same operation from local(Outside CRM) it is working fine.

    Note:

    The reason why we are not directly integrating CRM with the Azure service endpoint and passing the execution context is, we will need to retrieve the related entities data as well to send data to Azure.

    Please suggest us some solution if you have any.


    • Edited by NithyaPalanisamy Monday, September 22, 2014 12:13 PM added additional details
    Monday, September 22, 2014 6:35 AM

All replies

  • In a plug-in or workflow activity, call Execute on an object of type IServiceEndpointNotificationService to send the ExecutionContext to an Azure queue or other endpoint. In the context object that's being sent, you can add additional data into the SharedVariables collection. For example, in the plug-in, before sending the data to Azure, you can query back into CRM and store the resulting entity or entities in SharedVariables.


    Tim A. Dutcher Altriva Solutions Microsoft Gold Certified Partner Bellevue, WA

    Friday, July 24, 2015 9:14 PM