You need to sign in to do that
Don't have an account?
Charles McDowell
Trigger Error:no viable alternative at character '"'
trigger AddRelatedCustomer on Account (after insert) {
I am new to salesforce and I am gett the no viable alternative at character '"' from this trigger. Can you tell me what I am doing wrong
List<Contact> cont = new List<Contact>();
for(Account acct: Trigger.new)
{
cont.add(New Contact(LastName = "Stitt",FirstName = "Sonny", AccountID = acct.ID));
insert cont;
}
}
I am new to salesforce and I am gett the no viable alternative at character '"' from this trigger. Can you tell me what I am doing wrong
List<Contact> cont = new List<Contact>();
for(Account acct: Trigger.new)
{
cont.add(New Contact(LastName = "Stitt",FirstName = "Sonny", AccountID = acct.ID));
insert cont;
}
}
Would you kindly mark my answer as best answer/ solved so that others who do not know how to resolve this error know how.
Thank you,
Esther.
All Answers
Feel free to give this a thumbs up/mark as best answer if the solution worked for you
Thank you,
Esther Onema
Would you kindly mark my answer as best answer/ solved so that others who do not know how to resolve this error know how.
Thank you,
Esther.