I'm attempting to add a jslink script to a Promoted links list via rest.

Despite jsLink referenced as a property of SP.View, I get the following error:

The property 'jsLink' does not exist on type 'SP.View'. Make sure to only use property names that are defined by the type.


var changeData = { '__metadata': { 'type': 'SP.View' }, 'DefaultView': true, "jsLink": jslUrl, 'RowLimit': 5, };

$.ajax({ url: thisViewUrl, type: "POST", data: JSON.stringify(changeData), headers: { "X-HTTP-Method": "MERGE", "content-type": "application/json;odata=verbose", "X-RequestDigest": $("#__REQUESTDIGEST").val(), }

  • Is SharePoint On Line? Do you see the jslink property via browser? – Juan Pablo Pussacq Laborde Jul 19 '17 at 12:17
  • OnPrem. I do see jsLink property on the list. – Oxossi Jul 19 '17 at 14:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.