function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PDesPDes 

Data storage is used 94% and out of that 55% is been used by email messages. I want to know that the emails that we sync with Salesforce, are they counted in tasks or email messages?

Data storage is used 94% and out of that 55% is been used by email messages. I want to know that the emails that we sync with Salesforce, are they counted in tasks or email messages?

How can I query email messages for accounts?
Nikhil_KhetanNikhil_Khetan
@priyanka, i believe you are using some email messages sync with your inbox may be Lightning Sync or third party.
Yes, they are counted against your data storage.

query:
Select id from EmailMessage where Parent.Type = 'Account'

TIP: Use einstein data capture, this is bring email realtime.

Thanks,
Nikhil
Please mark this as best answer if you find my answer's helpful.