podio / podio-dotnet

Podio .NET client
MIT License
19 stars 39 forks source link

Bad Request Exception when updating textfield of an item. #15

Closed agarcia00 closed 9 years ago

agarcia00 commented 9 years ago

Get error when trying to add a value to a text field within the item.

PodioAPI.Models.Item AppItem = podio.ItemService.GetItemBasic(item); var user = AppItem.Field("title"); var folder = AppItem.Field("share-folder-name"); var mgrField = AppItem.Field("manager-email"); mgrField.Value = mgr; podio.ItemService.UpdateItem(AppItem); //Get Bad Request Exception

AjmalVh commented 9 years ago

Hi @agarcia00

The item update wont work this way. You need to create a new Item object and update the values. See the documentation here: http://podio.github.io/podio-dotnet/items/