You need to sign in to do that
Don't have an account?
bharath kumar 52
Trigger to add account and contact info to a custom object "after insert"
Hi All,
I have a situation where i need to insert 2 fields from account and the few fields from contact(related to account) to a custom object . Is it possible using triggers?
I have a situation where i need to insert 2 fields from account and the few fields from contact(related to account) to a custom object . Is it possible using triggers?
2. Is the new object to related to account or contact ?
This can be defenitely done through trigger.
2.)It deosn't have a relationship with either of them but i think i need to create lookup on account only theni can access it i guess.
global trigger foraccount on contact(after insert){
list<contact con=[select lastname,phone from contact where name=:trigger.new];
LIst<account> acc=new list<account>();
account a=new account();
a.name=con.lastname;
a.phone=con.phone;
}
just do this any issue tell me i hope this is use ful to u