Closed tlightsky closed 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:
Additional context Add any other context about the problem here.
it seems we need to use
_, err := list.Items().GetByID(item.Data().ID).Update(jsonstr)
doc might need be update
@tlightsky thanks! Fixed the docs page sample.
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:
Additional context Add any other context about the problem here.