Skip to content

Commit 5120852

Browse files
authored
readme.md
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.
1 parent b2698d3 commit 5120852

File tree

1 file changed

+12
-0
lines changed
  • Business Rules/Fetching reference field value from higher-level parents

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
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

Comments
 (0)