You need to sign in to do that
Don't have an account?
Chris McFarling
Update EmailMessage RelatedToId
I want to relate an outbound email message to a different Opportunity. EmailMessage.RelatedToId holds the Id of the Opportunity for which it's related to. I attempted to simply change the RelatedToId on the EmailMessage using Execute Anonymous but it doesn't work. Getting error "System.SObjectException: Field is not writeable: EmailMessage.RelatedToId".
Is there another method of updating this field?
EmailMessage msg=[SELECT Id, RelatedToId FROM EmailMessage WHERE Id = '02so000000I7rXuAAJ']; msg.RelatedToId='006o000000NJzV1AAL'; Update msg;
Is there another method of updating this field?
Thanks and Regards,
Judith J. Drake
https://www.talktowendys.website/
thanks and regards,
https://www.downloadeaadhar.online