You need to sign in to do that
Don't have an account?

Unexpected Token Trigger Error, please Help
trigger WebUserClientIDTrigger on Web_User__c (before insert) {
for(Web_User__c w: Trigger.New){
if (w.Account_Name__c <> ''){string tempid = w.Account_Name__c;
w.ClientID__c = [Select ClientID__c from Account where id = tempid].ClientID__c;}
}
}
It returns "Unexpected Token tempID"
What did I do wrong?
You're missing the colon that specifies its bind variable.
where id = tempid]
should be
where id = :tempid]
All Answers
You're missing the colon that specifies its bind variable.
where id = tempid]
should be
where id = :tempid]
thanks