Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Issue with custom Action in CRM Online

$
0
0

I'm a custom action with two parameters:
- EntityCollection (input)
- String (output)

I call the custom action with javascript using XMLHttpRequest through new WebApi 8.1 and work perfectly. The problem occurs when I add a new parameter of type EntityReference, the call to action no longer works, it returns the error that left below.

The funny thing is that through the SDK in a console application, it works and I return the output parameter of type EntityReference, only fails when it is through javascript webapi

"{\r\n  \"error\":{\r\n    \"code\":\"\",\"message\":\"Resource not found for the segment 'hsjd_actionTEST'.\",\"innererror\":{\r\n      \"message\":\"Resource not found for the segment 'hsjd_actionTEST'.\",\"type\":\"Microsoft.OData.Core.UriParser.ODataUnrecognizedPathException\",\"stacktrace\":\"   at Microsoft.OData.Core.UriParser.Parsers.ODataPathParser.ParsePath(ICollection`1 segments)\\r\\n   at Microsoft.OData.Core.UriParser.Parsers.ODataPathFactory.BindPath(ICollection`1 segments, ODataUriParserConfiguration configuration)\\r\\n   at Microsoft.OData.Core.UriParser.ODataUriParser.Initialize()\\r\\n   at Microsoft.OData.Core.UriParser.ODataUriParser.ParsePath()\\r\\n   at System.Web.OData.Routing.DefaultODataPathHandler.Parse(IEdmModel model, String serviceRoot, String odataPath, ODataUriResolverSetttings resolverSettings, Boolean enableUriTemplateParsing)\\r\\n   at System.Web.OData.Routing.DefaultODataPathHandler.Parse(IEdmModel model, String serviceRoot, String odataPath)\\r\\n   at Microsoft.Crm.Extensibility.OData.CrmODataPathHandler.Parse(IEdmModel model, String serviceRoot, String odataPath)\"\r\n    }\r\n  }\r\n}"

 

Does anyone know what this error is due?


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>