You need to sign in to do that
Don't have an account?
Jack A 2
Trigger is not working?
I am trying to write a trigger that will copy the same attachment to all related contact when we insert an attachment to Account Object.
trigger CopyAttachmentsToCon on Attachment (after insert) { Set<Id> AccountIds = new Set<Id>(); for(Attachment file : Trigger.new) { if(file.ParentId.getSObjectType() == Account.getSObjectType()) { AccountIds.add(file.ParentId); } }Now how to get map of all the related contact of coresponding Account with Attachment?
Try this code-
Thank
Rupal kumar
http://mirketa.com