You need to sign in to do that
Don't have an account?
himanshu huske 7
Please provide trigger code
update 1 parent 'contact info' text field with names of all the child contact related records names.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
As mentioned in another question can you try the below code once and respond if there are any issues:
Regards,
Anutej
I used this code, it works fine,
please provide code for above scenerio.
Thanks.
trigger contriacc on Contact (before insert) {
if(trigger.isbefore && trigger.isinsert)
{
set<id> accid = new set<id>();
map<id,string> conmap= new map<id,string>();
for(Contact c: trigger.new)
{
accid.add(c.AccountId);
conmap.put(c.AccountId,c.Name);
}
If (accid.size ()> 0) {
List <Account> upAccList = new List <Account> ();
For (Account ac:
[SELECT Id, ContactsList__c FROM Account WHERE id in: accid ]) {
ac.ContactsList__c + =conmap.get(ac.id) ;
upAccList.add (ac);
}
If (upAccList.size ()> 0)
update upAccList;
}
}
}