Search This Blog

Thursday, March 2, 2017

Resource not found for the segment 'salesorderdetail'

"Resource not found for the segment 'salesorderdetail'.


This error is due to entity name is not properly given in the WEBAPI/OData.


 KTI.WebAPI.Create("salesorderdetail", obj, test, null);

Solutions:
https://organization.api.crm8.dynamics.com/api/data/v8.1/

Get the salesorderdetail logical name, here most of the entity name has given in plural definition.
 KTI.WebAPI.Create("salesorderdetails", obj, test, null);
 KTI.WebAPI is nothing but I have created a utility function for web API create.





No comments:

Post a Comment

Note: Only a member of this blog may post a comment.