locked
Calling external WCF service in CRM 2015 Trial version RRS feed

  • Question

  • Is it possible to call the external WCF service in CRM 2015 Trial version using javascript on formload. 
    Thursday, April 23, 2015 1:14 PM

All replies

  • You can add any HTML or JS webresource that you want to.  The trial version doesn't put any limitation on this, but you are going to run into Cross-Site Scripting (XSS) issues.  If the service you are calling supports JSONP, you may be able to go that route.  Better still would be to configure CORS on the service.

    If this post was helpful, please mark as answered.

    • Proposed as answer by Torstein Utne Friday, April 24, 2015 12:28 PM
    Friday, April 24, 2015 1:38 AM
  • Hello,

    One other viable solution is you trigger the webservice call via a Plugin - JScript triggers the event required for the Plugin to run. Can potentially lead to loop issues though, so on formload wouldn't be recommended, unless you develop some logic that prevents the onload action to run multiple times.

    I would rather go with a Ribbon button trigger an event on a dummy field in the form and perform the call via Plugin.

    Friday, April 24, 2015 9:25 AM