Link files
I try to accomplish the following: create a new item in an app when certain event occures in another app, and in this new item I have to put some of the data (including the files) from the item that trigered the event. So I create, the new Item like that: $fields = array( new \\\\PodioTextItemField(array('external_id' => 'title', 'values' => "some name")), ); $item = new \\\\PodioItem(array( 'app' => new \\\\PodioApp($app_id), 'fields' => $fields, 'files' => array($file_id) )); And in this case I have an error of type "PodioForbiddenError" which says "The app with id xxxxx does not have the right update on file with id xxxxx" What could be the way to achieve that?

  • Thanks for the answer. Can you also give a PHP example on how to actually copy the files from one item, and add them to a newly created item. eg. $copied_files = ??? how to copy the files $item = new PodioItem(array( 'app' => new PodioApp($app_id), 'fields' => $fields, 'files' => ???? is this the place where the copied files may be added. If so, how exactly? ));
This question is closed.