Ttg
- 1. trigger abc on account (after update)
{
map<id,account> mymap=trigger.newmap;
set<id> sid= new set<id>();
for(account a:trigger.new)
{
sid.add(a.id);
}
list<contact> conlist= [select id,email, accountid from contact where accountid=:sid];
for(contact c:conllist)
{
account a= mymap.get(accountid);
c.email= a.email;
}
update conlist;
}