When you using SDK.Rest + OData Query, you can receive this following error:
Error:”404: Not Found:Resource not found for the segment ‘productSet’”
Cause:
It is because in ODataQuery, the name of entity and attribute are case sensitive.
Resolution:
Check in this code line:
SDK.REST.retrieveMultipleRecords("product", options, retrieveProductCallBack, function (error) { alert(error.message); }, productRetrieveComplete);
then change to:
SDK.REST.retrieveMultipleRecords("Product", options, retrieveProductCallBack, function (error) { alert(error.message); }, productRetrieveComplete);
Because when you see in the OData Query Designer:
It is ProductSet, it is not productSet
Hope it helps!
Thanks It Worked for me:)
ReplyDeleteThanks work
ReplyDeleteThis helped me today - specifically with the Product entity. Thanks!
ReplyDelete