Skip to content

Conversation

Soumyadeep10
Copy link
Contributor

This is a "before insert/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

In the code, we are referring to "reference field name we want to populate" as "r1" In the code, we are referring to "reference field containing parent record" as "parent"

The "JSUtil.nil" is being used to check for empty/null value for the field.

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

…en there is a field containing the parent record in child.js

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.
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
@wiz0floyd
Copy link

Thank you for your contribution. However, it doesn’t comply with our contributing guidelines. Please move your snippet into its own subfolder. As a reminder, the general requirements (as outlined in the CONTRIBUTING.md file) are the following: follow the folder+subfolder guidelines and include a readme.md file explaining what the code snippet does. Review your contribution against the guidelines and make the necessary adjustments. Closing this for now. Once you make additional changes, feel free to re-open this Pull Request or create a new one.

@wiz0floyd wiz0floyd closed this Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants