Hi,
I'm having a problem creating a new record with the web api. I can't get it to work. I've set up table permissions and web roles.
I have 2 tables, my_table which has a lookup field in linked_table. My call is as below which is linked to a button click in javascript.
webapi.safeAjax({
type: "POST",
url: "/_api/my_tables",
contentType: "application/json",
data: JSON.stringify({ "my_lookup@odata.bind": "/linked_tables(" + id + ")",
"email_field" : "email", "message_field" : "message"}),
success: function (res) {
console.log(res);
}
});
Nothing seems to be happening.
I'm a bit confused with what to use with plurals and whether to use schema or logical name.
Can anyone help?
Thanks