Post

2 followers Follow
0
Avatar

Updating a Field Value (PHP)

I've been trying to updated a field value in one of my apps and I'm getting hung up on getting the field_id for the field I want to update.  I tried following the info on this thread..

https://help.podio.com/hc/en-us/community/posts/200515938-PodioItemField-update-to-update-field-value-PHP?input_string=Updating%20a%20Field%20Value%20(PHP)

but I get hung up on getting the field object from the items..

$item2 = new PodioItem(array("item_id" => $item->item_id,"fields" => array(new PodioCategoryItemField($field_id))));
$field=$item2->field($field_id);

my code fails here everytime.  I think it's because the "field($field_id)" isn't a valid function call to get the field object matching the ID.  I've checked to make sure the $field_id is valid and that I have an $item2 object.  I'm lost

Thanks

Scott Costello

Please sign in to leave a comment.

1 comment