on 2025 Mar 21 3:03 PM
Hello Experts,
I hope that all of you are doing well.
There is a requirement to auto-generate field value.
For example, If the parent object short name is XX-AB-CDEF, then the system should generate the short name of the new child object as “XX-AB-CDEFA” (One unique character to be added, after the parent object short name) and if another new child object is created, short name should be “XX-AB-CDEFB” and so on.
Thanks and Regards,
Request clarification before answering.
We shall consider 2 scenarios,
Scenario 1:- In relationship type for child if you defined/created as Child 1, Child 2, Child 3, Child 4, etc then based on the selected child relationship type, in the business rule you shall able to suffix the alphabet A,B,C,D etc.
Scenario 2:- In the business rule, create rule to "Get Count of Dependents()" function specifically for relationship type "Child" and based on the count of dependent child define the rule.
example:- 1. Get Count of Dependents() = 1 for relationship type "Child" the set name as concatenate "parent name" + "A"
2. Get Count of Dependents() > 1 for relationship type "Child" the set name as concatenate "parent name" + "B"
3. Get Count of Dependents() > 2 for relationship type "Child" the set name as concatenate "parent name" + "C"
4. Get Count of Dependents() > 3 for relationship type "Child" the set name as concatenate "parent name" + "D" and so on..,
Can you try this based on your personrelationship definition?
Thanks
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you shall able to achieve this requirement by using concatenate function,
a. Add If condition for relationship type "Child" is equal to null then concatenate name string + "A"
b. Add Else If condition for relationship type "Child" is not equal to null then concatenate name string + "B"
Above condition may work until for 2 children. From third child onwards, need to explore logic.
Thanks
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.