You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this before insert or update Business Rule, we are fetching a reference field value from higher-level parents in hierarchy when there is a field containing the parent record in the children and our use-case reference field is present in all the tables in hierarchy.
This is a "**before insert/update**" Business Rule
2
+
We are fetching a reference field value from higher-level parents in hierarchy
3
+
when there is a field containing the parent record in the children and
4
+
our use-case reference field is present in all the tables in hierarchy
5
+
6
+
In the code, we are referring to "reference field name we want to populate" as "_r1_"
7
+
In the code, we are referring to "reference field containing parent record" as "_parent_"
8
+
9
+
The "**JSUtil.nil**" is being used to check for empty/null value for the field.
10
+
11
+
12
+
Through the code we are checking the empty value of the use-case reference field and dot walking to parents and fetching the value from them if it exists
0 commit comments