I want to add/update data in Custom table through REST.
I am trying to do the same with POST method but it gives an error 'Method not allowed'.
Here is my request,
if i change the request and remove 'all' like this ->
It gives an error
404 - File or directory not found.
for now i am sending this request from Chrome postman.
P.S. GET request gives all the data, /rest/customtableitem.customtable.sampletable/all
Please let me know what am i missing here
Please make sure you are authenticated and you have correct permissions for inserting new items into custom tables:
Thanks a lot for your reply.
adding runAllManagedModulesForAllRequests="true" resolved the issue.
Thanks a Lot again!
One more question,
Can we add multiple records in a custom table through REST in a single request?
No, You can't. 1 request - 1 record. Take a look at Managing objects using REST.
Creating multiple objects of the same type in a single request is not supported.
Please, sign in to be able to submit a new answer.