Finding which items reference a deleted item
I'm working on a script which should delete a room booking when the corresponding meeting is deleted. However, I need to be able to know what the link is so it can be performed when the item.delete webhook is fired. Understandably, PodioItem:get() does not work, as the item has been deleted. The room booking still contains a reference to the meeting, which can be seen in the item and displays a "The related item has been deleted." message when clicked. When I try to get the same reference information via PodioItem:get_references(), however, I get an Uncaught PodioGoneError: "Item has been deleted" error. Is there a different/better way to find which items reference a deleted item?

  • Hi Andreas, The reference to the deleted item is still there in the reference field. It might be a good idea to include functionality to find these references to deleted items in a future release, I'd personally find it really useful and I know a few other forum users have had a similar problem. Perhaps maintain the deleted items/references for access by the API for a set amount of time after deletion? Thanks for your help :)
  • Since the item has been deleted you will no longer be able to get references to it (those referenced has been deleted as well).
This question is closed.