Category
Describe the bug
When updating a SharePoint list item with a Percentage field, the value format is inconsistent between UpdateAsync() and SystemUpdateAsync().
- Using
UpdateAsync(): setting value 65 saves correctly as 65%.
- Using
SystemUpdateAsync(): setting value 65 saves incorrectly as 6500%. Only by setting 0.65 does it save correctly as 65%.
Steps to reproduce
- Create a SharePoint list with a Percentage column.
- Call
UpdateAsync() with value 65.
- ✅ Saved correctly as 65%.
- Call
SystemUpdateAsync() with value 65.
- ❌ Saved incorrectly as 6500%.
- Call
SystemUpdateAsync() with value 0.65.
- ✅ Saved correctly as 65%.
Expected behavior
Both UpdateAsync() and SystemUpdateAsync() should use the same value format for percentage fields. Providing 65 should always result in 65%.
Environment details (development & target environment)
- SDK version: 1.15.0
- OS: Windows 11
- SDK used in: ASP.Net Web app
- Framework: .NET Core v8.x
- Additional details: SharePoint list with Percentage column type.