question

EricSchoen-9987 avatar image
0 Votes"
EricSchoen-9987 asked EricSchoen-9987 commented

Update fields of type Note with ValidateUpdateListItem

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-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MichaelHan-MSFT avatar image
1 Vote"
MichaelHan-MSFT answered EricSchoen-9987 commented

Hi @EricSchoen-9987,

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.




image.png (31.5 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yes, that did it. I do find it strange that fields of type Note, which are documented to hold up to 63,999 characters, require an additional attribute to permit long values.

0 Votes 0 ·