Dear mates,
I m building an external form which must insert/update an object collection with oData.
GET - POST and DELETE works fine
But if i want to update (PUT), i ve got the following error: the item is not found
{"error":{"code":"1","message":{"lang":"","value":"L'\u00e9l\u00e9ment UsrExternalisation est
introuvable."},"innererror":{"message":"L'\u00e9l\u00e9ment UsrExternalisation est
introuvable.","type":"Terrasoft.Common.ItemNotFoundException","stacktrace":" at
Terrasoft.Core.Entities.Services.EntityLazyProxy.<>c__DisplayClass28_0....
My PUT function works fine in other object update.
Do you have an idea why this error occurs ?
Thanks,
Nicolas
Like
What does the URL look like that you're doing the PUT on? It needs to look like this (but obviously with the record Id instead of an empty Guid):
https://creatioaddress/0/ServiceModel/EntityDataService.svc/ContactCollection(guid'00000000-0000-0000-0000-000000000000')
Also, even though the docs specify a PUT for updates, it will also accept a PATCH (which is what I usually use)
Ryan
Hi Ryan,
I don't understand why my PUT calls work fine today without any modification on my side.
Here's the URL:
https://urltocreatio/0/ServiceModel/EntityDataService.svc/UsrExternalisationCollection(guid'b83bedb1-ad72-4c6a-9965-88677a13dfe1')
I see with my support team if they have modified something.
Thank you for the answer, have a nice day.
Nicolas
=>>>>
I had the problem one more time.
it was because i didn't compile the database new elements before to try my oData access