How to check history records in notification