You need to sign in to do that
Don't have an account?
Abhishek Solanki
Please design solution as per following business scenario :
Consider Account standard object as an Exam and Contact standard object as a Student.
You need to create following fields for Exam.
Passing Marks : Number
Topper : Lookup(Contact)
You need to create following field for Student.
Marks : Number
Now, you need to develop following functionalities.
1 . On exam record, you need to show Topper for related Student records. It means, you need to identify the student who has highest marks.
Find topper from student records
Please design solution as per following business scenario :
Consider Account standard object as an Exam and Contact standard object as a Student.
You need to create following fields for Exam.
Passing Marks : Number
Topper : Lookup(Contact)
You need to create following field for Student.
Marks : Number
Now, you need to develop following functionalities.
1 . On exam record, you need to show Topper for related Student records. It means, you need to identify the student who has highest marks.
Please find below Trigger and Screenshots as per your requirement.
Screenshot 1: Exam1 is record in Account which has Contacts (Student1, Student 2, Student3 ....) and Topper is the Custom field of Accouunt which shows the Contact with highest Marks.
Trigger:
Let us know if that helps you.
Best Regards,
BALAJI
All Answers
Please find below Trigger and Screenshots as per your requirement.
Screenshot 1: Exam1 is record in Account which has Contacts (Student1, Student 2, Student3 ....) and Topper is the Custom field of Accouunt which shows the Contact with highest Marks.
Trigger:
Let us know if that helps you.
Best Regards,
BALAJI