Just checking if there any options/functions available to search specific text on Appian application's constant objects.It looks we can only search the content of expressions/rules not constants?
For example, one of the constant object: EMAIL_VALUESwith array values Test1@xyz.com Test2@abc.com Test3@ijk.com
If I'm searching for the text "@xyz.com", should show the result of constant name "EMAIL_VALUES".
Thanks.
Discussion posts and replies are publicly visible
When an expression runs, all constants get evaluated to their set value which in this case is a List of Text. You should have no problem finding a specific string in an array of text. Can you provide an example expression which isn't working?
My assumption was that he's referring to the /design "search by expression" functionality, which in fact does not return results of constant values as far as I've been able to tell, much to my occasional frustration.
It sounds to me like the question is, can we search the /design environment for certain text and have it return any constant that contains this value. E.g. search design objects for "@xyz.com", and cons!EMAIL_VALUES is displayed as the result. Similar to how we can search expressions for certain text/SAIL. As far as I know, this is not possible.
Thanks Danny / Mike,
Yes Mike is right. I'm looking to scan the content of constants using the search string. Although search by expression is possible, however to search inside the constant values, only option seems to download the constants objects as a package and use standard windows search tool to scan xml files. I'm trying to find the specific email-id value where its referred in the application objects / application settings.
You're right, thanks Chris.
I suppose the technical answer from the Appian side would be, that constant values are not included in "search by expression" because constants don't actually contain any "expression" code (just literal values).
It's still counter-intuitive, since it seems such functionality (or something very similar) should have the ability to let us scan for problematic labels, emails, id values, etc, in a large production system - where the same values would be easyish to find if they'd been hardcoded into their respective interfaces or expression rules. As I said, this has troubled me on several occasions, and I still don't know of any easy workarounds, other than the one you mentioned already.
Thanks Mike,
No problem!
Also to note, since object descriptions are searchable in /design, I will typically include the constant value in the description - e.g. "email to xyz - test1@xyz.com", then you will be able to find it by searching :)
True, Yes, its possible if that object contains single value. If it contains list of values/array list. will be difficult. Thanks Chris.