how to let post-save helper know it's a new item?
I need a post-save helper to know if the pod-item just saved was newly-added. Is there a parameter that shows that? I can't seem to find one in either $params or $columns.
thanks, Scott
3 Answers
Try just using the built-in variable $is_new_item which is set to true if it's a new item, and false if it's editing an existing item.
You can make a check if an item with this id already exists in Pods in pre-save helper, but in post-save you can only do a check if pod item was created in less than [x time] from now.
You could compare the created and modified fields for the record. If they are equal, it must be a new pod.


