Skip to main content
Known Participant
Jun 4, 2024 12:02 PM UTC
Question

Get cdt reference by name

Hi, Is there any to get any cdt's reference by its name like we have getrulereferencebyname function?

eval() function does the trick but as its internal function and not recommended, i will avoid it.

Thanks

7 replies

stefanhelzle0001
Brainy
Jun 4, 2024 12:06 PM UTC

I try to avoid doing such things in general. What do you try to achieve?

Known Participant
Jun 4, 2024 12:12 PM UTC

We have all the cdts in child application which are being called in a rule that is present in parent application. Now we can't deploy parent app first as it will have missing precedents(cdts) or vice-versa. Or we can say it is a circular dependency.

stefanhelzle0001
Brainy
Jun 4, 2024 2:01 PM UTC

I understand. But refactoring your app to use a really bad and unsafe design practice will only create other problems.

Did you consider putting all CDTs into a separate package and deploy that first?