What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Developer environment
Windows
What browser(s) / client(s) have you tested
[ ] š„ Internet Explorer
[ ] š„ Microsoft Edge
[ ] š„ Google Chrome
[ ] š„ FireFox
[ ] š„ Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[X] not applicable
[ ] other (enter in the "Additional environment details" area below)
Additional environment details
Not applicable because the problem is related to how SharePoint treats the REST request.
Describe the bug / error
When a SharePoint list has "Item Version History" activated ("Create a version each time you edit an item in this list?" to "Yes"), and when there is a "Multiple lines of text" field with "Append Changes to Existing Text" set to "Yes", then if we use the REST API _api/web/lists/getbytitle('List')/items(Id) with the method PATCH to update an item, the "Multiple lines of text" field is set to a blank value.
Steps to reproduce
Create a SharePoint Online list and activate the versionning
Add a "Multiple lines of text" field and use "Yes" for "Append Changes to Existing Text"
Enter a new entry, either by doing it with SharePoint UI, or REST API, or SOAP Web Service, and put a value in the "Multiple Lines of Text" field
Remark: Title has been updated to "Hello World", but Multiple_x0020_lines_x0020_of_x0 has also been updated to "null"!
Go to the item and check the "Version History":
As showed above, the "Multiple lines of text with History" field received an empty value when a different field has been updated by REST API, which will cause the field to now return a blank when trying to retrieve its value.
Current work arounds:
Use SOAP Web Services
Or we need first to retrieve the current value of the "Multiple lines of text with History", and then set it at the same time we update the other field...
Expected behavior
Updating a field in the item should not reset/put blank in another field.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Not applicable because the problem is related to how SharePoint treats the REST request.
Describe the bug / error
When a SharePoint list has "Item Version History" activated ("Create a version each time you edit an item in this list?" to "Yes"), and when there is a "Multiple lines of text" field with "Append Changes to Existing Text" set to "Yes", then if we use the REST API _api/web/lists/getbytitle('List')/items(Id) with the method PATCH to update an item, the "Multiple lines of text" field is set to a blank value.
Steps to reproduce
Create a SharePoint Online list and activate the versionning
Add a "Multiple lines of text" field and use "Yes" for "Append Changes to Existing Text"
Enter a new entry, either by doing it with SharePoint UI, or REST API, or SOAP Web Service, and put a value in the "Multiple Lines of Text" field
Retrieve the item using REST API
It returns the below:
Use REST API to update the "Title" field to a different value
Retrieve the item using REST API
It returns the below:
Remark:
Title
has been updated to "Hello World", butMultiple_x0020_lines_x0020_of_x0
has also been updated to "null"!As showed above, the "Multiple lines of text with History" field received an empty value when a different field has been updated by REST API, which will cause the field to now return a blank when trying to retrieve its value.
Current work arounds:
Expected behavior
Updating a field in the item should not reset/put blank in another field.