Correctly extract the IDs for `phone_call`, `email` and `note` objects