You need to sign in to do that
Don't have an account?
mahesh kumar 117
creating a trigger event 'after insert'
Hi
Iam creating a trigger event 'after insert' see the image and tell me the code is worng or write
Thanks,
Mahesh.
Iam creating a trigger event 'after insert' see the image and tell me the code is worng or write
Thanks,
Mahesh.
All Answers
You need to use the API Name of the object instead of the label , "Junction 14" looks like a label name. Please verify
API Name can be found @ Setup > create> objects> <select object name> > API name.
Thanks,
Nanda
Error: Compile Error: Field is not writeable: junction14__c.Name at line 5 column 5
please modify this code
trigger AutoCreateTrigger on emp__c(after insert) {
List<junction14__c> newjuns = new List<junction14__c>();
for (emp__c acc : Trigger.new) {
junction14__c jun = new junction14__c();
jun.Name = acc.Name + 'junction14';
jun.emp__cId = acc.Id;
newjuns.add(jun);
}
insert newjuns;
}
Thanks,
mahesh
Please verify the field access level and make sure that it's not Read-Only and Accessible
Thanks,
Nanda
please see the image and tell me where i have to change
Thanks,
Mahesh
Amit Chaudhary