Hi,
I have created a custom action to share with other clients who will create and update the contacts in CRM online. I have created a custom action to share but when i tried to access any action in browser or soap ui i am getting the error. Here are the things i have done. I tried other actions as well. I am not trying to pass any reocrd id or some thing. Trying to setup in SoapUI to make sure my Request and response works fine.
1. Created a custom action and activated it.
2. Able to see the action definition and all the required details in metadata. Typed the below URL in browser and verified metadata. I am able to see the action that i created. Two input parameters and one output parameter.
https://********.api.crm.dynamics.com/api/data/v9.1/$metadata
3. Trying to test the action from SoapUI, I want to make sure this works fine before i share this with other clients. I am getting below error when i type in browser or try create a project in SoapUI to test request and response.
{"error":{"code":"0x8006088a","message":"The request URI is not valid. Since the segment 'contacts' refers to a collection, this must be the last segment in the request URI or it must be followed by an function or action that can be bound to it otherwise all intermediate segments must refer to a single resource.","innererror":{"message":"The request URI is not valid. Since the segment 'contacts' refers to a collection, this must be the last segment in the request URI or it must be followed by an function or action that can be bound to it otherwise all intermediate segments must refer to a single resource.","type":"Microsoft.OData.ODataException","stacktrace":" at Microsoft.OData.UriParser.ODataPathParser.CreateDynamicPathSegment(ODataPathSegment previous, String identifier, String parenthesisExpression)\r\n at Microsoft.OData.UriParser.ODataPathParser.CreateNextSegment(String text)\r\n at Microsoft.OData.UriParser.ODataPathParser.ParsePath(ICollection`1 segments)\r\n at Microsoft.OData.UriParser.ODataPathFactory.BindPath(ICollection`1 segments, ODataUriParserConfiguration configuration)\r\n at Microsoft.OData.UriParser.ODataUriParser.Initialize()\r\n at System.Web.OData.Routing.DefaultODataPathHandler.Parse(String serviceRoot, String odataPath, IServiceProvider requestContainer, Boolean template)\r\n at System.Web.OData.Routing.DefaultODataPathHandler.Parse(String serviceRoot, String odataPath, IServiceProvider requestContainer)\r\n at Microsoft.Crm.Extensibility.ODataV4.Routing.CrmODataPathHandler.Parse(String serviceRoot, String odataPath, IServiceProvider requestContainer)"}}}
I tried with both the below URLS and ran into above error message. I believe i am calling this in a wrong way.
1. https://********.api.crm.dynamics.com/api/data/v9.1/new_testcontact
I read a post about Bound URLS so tried by adding Microsoft.Dynamics.CRM but no luck.
2. ltitechvsn.api.crm.dynamics.com/.../Microsoft.Dynamics.CRM.new_testcontact
*This post is locked for comments