You need to sign in to do that
Don't have an account?
Gadivemula Krishna 6
Hi, what is Invalid loop variable type expected SObject was Account?
I am creating isExecuting Scenario. I had written trigger on Account and This is Helper class below...
public class AccountNumberUpdate {
public void checkUpdate()
{
if(Trigger.isExecuting)
{
for(Account accountRecordNew : Trigger.new)
{
for(Account acountRecordOld: Trigger.old)
{
if(acountRecordNew.id == acountRecordOld)
//logic
}
}
}
}
}
public class AccountNumberUpdate {
public void checkUpdate()
{
if(Trigger.isExecuting)
{
for(Account accountRecordNew : Trigger.new)
{
for(Account acountRecordOld: Trigger.old)
{
if(acountRecordNew.id == acountRecordOld)
//logic
}
}
}
}
}
Trigger.isExecuting is used in trigger not in the apex class.
Thanks!!