Post

1 follower Follow
0
Avatar

MoneyItemField value not updating on item update

Updating a money field on an item doesn't update the value. The value is set to $0 and does not reflect the value that it was supposed to be updated to. Two fields should be updated, only the category field is updated and the money field isn't.

var updateItem = new PodioAPI.Models.Item();
var jobValueField = updateItem.Field<MoneyItemField>("job-value");
jobValueField.Currency = "AUD";
jobValueField.Value = 20.0000M;
var statusField = updateItem.Field<CategoryItemField>("job-status");
statusField.OptionId = 1; //Id comes from option mapping
updateItem.ItemId = podioJobsItem.ItemId; //Item Id comes from foreach
clientJobs.ItemService.UpdateItemFieldValues(updateItem)

Justin Shoesmith

Please sign in to leave a comment.