I have got email object and also attachment by using
Mail.attachments.count but archived email is not working because it is using enterprise vault.
I am getting attachments but archived email is not working and giving 0 or 1 count
I have got email object and also attachment by using
Mail.attachments.count but archived email is not working because it is using enterprise vault.
I am getting attachments but archived email is not working and giving 0 or 1 count
I have gone through the body of the emails and found that when an email is archived, the attachments are shown either in two ways as below.
1st
2nd
In order to get the attachments, the below logic can be used: