Update fields of type Note with ValidateUpdateListItem

Eric Schoen 21 Reputation points
2021-09-17T16:24:44.487+00:00

We are trying to use ListItem's REST API ValidateUpdateListItem call to update fields of an item in a document library without causing new versions to be created. We can generally make this work, but we have Fields of type Note to hold multiline text longer than 255 characters. When we use ValidateUpdateListItem to write these with strings longer than 255 characters, using the InternalName of the field (e.g., My_x0020_Internal_x0020_Name), we get errors indicating that the text is too long.

We are able to write these fields via a MERGE request to the ListItem with exactly the same field name and value in the map provided as the body of the MERGE request.

Any ideas for how to write long text fields via ValidateUpdateListItem?

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,668 questions
0 comments No comments
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-09-20T02:08:06.087+00:00

    Hi @Eric Schoen ,

    You need to check the "Allow unlimited length in document libraries checkbox." for the fields. Like the below:

    133339-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful