1

I have a REST api to update the different fields of Item in the list

$.ajax({ url: projectSiteURL + "/_api/web/lists/GetByTitle('MyList')/items(10)", xhrFields: { withCredentials: true }, crossDomain: true, type: "POST", data: JSON.stringify ({ '__metadata': { 'type': 'SP.Data.MyListListItem' }, 'DocDescription': "test", 'CustomStatus': "Specific value here in custom field type format" }), headers: { "Accept": "application/json;odata=verbose", "Content-Type": "application/json;odata=verbose", "X-RequestDigest": $("#__REQUESTDIGEST").val(), "IF-MATCH": "*" , "X-Http-Method": "MERGE" }, success: function(data, status, xhr) { console.log(status); }, error: function(xhr, status, error) { console.log(error); } }); 

When I execute above code, it gives me error:

"The property 'CustomStatus' does not exist on type 'SP.Data.MyListListItem'. Make sure to only use property names that are defined by the type."

I have that field on the list of type custom field type which I created by code from here.

I have also checked when I get item with REST Api, even when I do have value in that field, I don't get that field value in a result. Can someone tell me please what am I missing here.

    1 Answer 1

    2

    So far found nothing for the answer.

    Seems it is not possible with the REST API.

    But if someone can correct me here, please add answer.

      Start asking to get answers

      Find the answer to your question by asking.

      Ask question

      Explore related questions

      See similar questions with these tags.