Please specify what version of the library you are using: [ 2.0.3 ]
Please specify what version(s) of SharePoint you are targeting: [ SOP ]
the code
const updateLinkingUri = async (fileLink,itemId) => {
const appWeb = Web(window.location.origin + "/sites/app/");
let list = appWeb.lists.getByTitle("ECG-Document-Number-Master");
const iu:IItemUpdateResult = await list.items(itemId).update({
"LinkingUri": fileLink
});
};
Should work with no tslint issues the list "ECG-Document-Number-Master" has a text field named "LinkingUri"
Linter errors:
Argument of type '{ "LinkingUri": any; }' is not assignable to parameter of type '{ Title: string; Description: string; }'.
Object literal may only specify known properties, and '"LinkingUri"' does not exist in type '{ Title: string; Description: string; }'.ts(2345)
create function as describe.
Thanks for the help
Hi @Ofer-Gal,
You probably have an issue within that line list.items(itemId).update. As it should be list.items.getById(itemId).update instead.
Wow you are quick :-)
I just realized my mistake
Thanks