You need to sign in to do that
Don't have an account?
David Hien 8
We have two custom Object Student and College.
I have one custom field in Student fee
And in Parent Total Amount
Whenever student joined to college Total Amount will be update using trigger
We have two custom Object Student and College.
We have two custom Object Student and College.
I have one custom field in Student fee
And in Parent Total Amount
Whenever student joined to college Total Amount will be update using trigger
Please copy and run this given below code.
This code is working for insert, update, delete student and update college total amount according to a student.
This code simple and easy to understand for new salesforce developer.
Please mark it as best Answer if you find it helpful.
Thank You
Ajay Dubedi
All Answers
Please copy and run this given below code.
This code is working for insert, update, delete student and update college total amount according to a student.
This code simple and easy to understand for new salesforce developer.
Please mark it as best Answer if you find it helpful.
Thank You
Ajay Dubedi
- Mine has less number of lines
- The SOQL is more efficient with no Sub Query
- No Nested for loops and less loops
All above conditions may not be significant for the less data but for Mass they will be significant and that is what Salesforce dictates. Simple code matters but it need to be taken account the efficiency too. Also as a developer you need to learn less code, more result kind of a thing because it is easy to maintain too.def is_divisible(number, divisor): return modulo(number, divisor) == 0 def is_even(number): return is_divisible(number, 2) cheap essay writer (https://cheapessaywriter.co.uk/)
Hope this helps.