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

Error: Compile Error: Entity is not org-accessible at line 1 column 1
Hi All,
Can any one solve this issue .
trigger defaultpayment on Student__c (after insert) {
Student__c student = trigger.new();
Payment__c payment = new Payment(Student__c = student.Name,StudentId=student.Id,Amount = 200);
insert payment;
}
Regards,
Suresh.
Can any one solve this issue .
trigger defaultpayment on Student__c (after insert) {
Student__c student = trigger.new();
Payment__c payment = new Payment(Student__c = student.Name,StudentId=student.Id,Amount = 200);
insert payment;
}
Regards,
Suresh.
Try this code :
If this answers your question mark Best Answer it as solution and then hit Like!
All Answers
Please find the code below:
trigger defaultpayment on Student__c (after insert) {
Student__c student = trigger.new();
Payment__c payment = new Payment__c(Student__c = student.Name,StudentId=student.Id,Amount = 200);
insert payment;
}
Check api names of studentId and Amount and place it correctly where you are creating the payment and __c is missing in Payment__c payment = new payment();
Mark this as best answer if this solves your query.
Regards
Sampath Kumar Goud
Try this code :
If this answers your question mark Best Answer it as solution and then hit Like!
for similar issue