Get state of item before delete

Answered

Comments

5 comments

  • Andreas Haugstrup Pedersen

    Hi Martin,

    That is the limitation of the item.delete webhook. At that point the item has been deleted and you can no longer get to it. My suggestion would be to store the relation locally when you receive item.create and item.update webhooks so you always have the data on hand.

    All the best,

    Andreas

    0
    Comment actions Permalink
  • Gregory Beaver

    This is impractical - it requires storing the entire app locally. Is there no way that Podio could trigger the web hook just before deletion? As it is, even reverting the delete revision does nothing useful. Boo!

    0
    Comment actions Permalink
  • Henryk Helsky

    I have a similar case, where I would need to delete a value from "parent app item" field, and I can't catch the parent app item using the item.delete hook. And yes, I find it also impractical to store all items locally. Would be a lot more convenient if you could prioritize firing the hook.

    Is it out of the question to add a hook for this case – for example "item.predelete"?

    0
    Comment actions Permalink
  • Donna Yee

    Hi, I'm encountering a similar issue. We need to grab the state of the item before deletion. Could the delete potentially return the item itself?

    0
    Comment actions Permalink
  • Mathieu Smith

    Could it be supported in near future? Sometimes, I have an item to delete which has other subitems related to it (parent-child relation). I would like to create a cascade effect on item.delete webhook, It could be very pratical in many other ways too.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk