Question
Recursively get db entries
Hi Everyone,
I've got a CDT that has an Id as a Primary Key and then a Numeric field that is a reference to a previous same-cdt entry id.
Starting from an ID I need to back-track all the way to the first "father" entry. All should be done using Expression Rules.
To give you an example I would like to start from contract ID:4 and backtrack all the way to ID 1 (that has no father id)
I managed to achieve the backtracking with a process but I can't make it work with a reduce() or a forEach() function.
Has someone found something like this in his history?
Best regards, Luca.
