I am aware that this question was discussed before, but some of the entries are older then 2 years. I want to create an item in Podio with different types of fields. It works fine for simple text fields by using
$item = PodioItem::create(%APPID%, array('fields') => array("textfield" => 'example'));
But, I when I want to include field types like Embed, Reference, etc. I run into trouble because it returns a Bad Podio request. I tried to attach fields after creation like following
$field_id = %FIELDID%;
$field = new PodioAppItemField($field_id);
PodioItemField::update($item->item_id, $field_id, $field->as_json(false));
But, this yields an error and does not go thru to Podio. Could you please show an example how to accomplish this task.
Please sign in to leave a comment.