Please enable JavaScript
We will get INSUFFICIENT_ACCESS_OR_READONLY when we set ActivityId on the EmailMessage record with RelatedToId other than Case Record. Blog Post: https://www.infallibletechie.com/2022/09/activityid-on-emailmessage-object-in-salesforce.html