You need to sign in to do that
Don't have an account?
dhruv arora
please help me in writting test class for this triggre.
trigger owner on Account (before update) {
user u =[select id,firstname from user where firstname='dhruv' limit 1];
list<Account> a = new list<Account>();
for (account acc:trigger.new)
{
acc.name=u.firstname;
//a.add(acc);
}
//update a;
}
user u =[select id,firstname from user where firstname='dhruv' limit 1];
list<Account> a = new list<Account>();
for (account acc:trigger.new)
{
acc.name=u.firstname;
//a.add(acc);
}
//update a;
}
try this class Thanks
let me inform if it helps you and mark it best answer so it make proper solution for others :)
All Answers
try this class Thanks
let me inform if it helps you and mark it best answer so it make proper solution for others :)