You need to sign in to do that
Don't have an account?
Justin Garey
Apex trigger to copy field value
I wrote a trigger to copy field date from one fiel to another. Keeping getting this error. Any suggestions?
Compile Error: expecting an equals sign, found ":" at Line 3 column 12 (highlighted)
Trigger updateFields on Case (before update){
for (Case : trigger.new){
Serial_Number__c = SVMXC__Component__c;
}
}
Compile Error: expecting an equals sign, found ":" at Line 3 column 12 (highlighted)
Trigger updateFields on Case (before update){
for (Case : trigger.new){
Serial_Number__c = SVMXC__Component__c;
}
}
for (Case c : trigger.new)
{
c.Serial_Number__c = SVMXC_Component__c;
}
and it should pass.
Mike
P.S. You may have an extra underscore after SVMXC but that may be your actual field name so don't worry about it.