Post

2 followers Follow
0
Avatar

How to change status when create item

I am using php wrapper, try create an item, all is ok, item is creating, but I can't change status, tried different ways, but can't find right way:

$fields = new PodioItemFieldCollection([
    new PodioTextItemField(["external_id"=>"project-description", "values" => "FooBar"]),
    new PodioCategoryItemField(['external_id'=>'status', 'values'=>13]),
]);

$item = new PodioItem([
    'app' => new PodioApp($app_id),
    'fields' => $fields,
    'tags'=>['tag1', 'tag2', 'tag3']
]);

$item->save();
Anton Mikhailov

Please sign in to leave a comment.

2 comments