koltyakov / gosip

⚡️ SharePoint SDK for Go
https://go.spflow.com
MIT License
140 stars 32 forks source link

Can't update list #33

Closed tlightsky closed 4 years ago

tlightsky commented 4 years ago

Describe the bug try with https://go.spflow.com/samples/basic-crud#updating-an-item

Versions master

Expected behavior update a list item

Screenshots if not set id, it will just add an item, if set id, it will fail with duplicate id: image

Additional context Add any other context about the problem here.

tlightsky commented 4 years ago

it seems we need to use

        _, err := list.Items().GetByID(item.Data().ID).Update(jsonstr)

doc might need be update

koltyakov commented 4 years ago

@tlightsky thanks! Fixed the docs page sample.