Skip to main content
michels0002
September 17, 2025
Solved

dynamic object manipulation

  • September 17, 2025
  • 7 replies
  • 0 views

I need to check if a function exists and then call it, using its name as a reference for both operations. I know that the functions doesruleexist and rulereferencebyname exist, but I don't know which plugin they belong to or if there is an alternative.


PS: Due to business restrictions, I cannot use externalize() and internalize().

Best answer by shubhama926776

May i know your use case to understand better?

7 replies

shubhama926776
September 17, 2025

May i know your use case to understand better?

michels0002
September 17, 2025

I have a long list of rules that have the same functionality: validating certain data as appropriate. Instead of using a huge choose(), I want to rely on this plugin that I know exists and ask if the name of the rule exists to execute the rule, since they all return the same structure and receive the same parameters. The issue is in the intermediate rule, where the choose is located.

shubhama926776
September 17, 2025

Got you!
doesruleexist and rulereferencebyname this functions are part of Appian Solutions Plug-in

September 17, 2025

From a governance perspective, it isn't a good idea to use an unsupported plugin (or undocumented function, like eval) in production. Any Appian upgrade or plugin change could break your code without warning and without a way to revert. So be very careful with this plugin in production.

From the plugin's description:
None of the functions or smart services in this plugin should be used for any other purpose, nor are they verified to work outside of their usage in Appian-built solutions and the Solutions Customization Suite.

With that said, there are some excellent test-related use cases for it in lower environments.