
Anonymous Community User asked a question.
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?