Skip to main content
Brainy
April 21, 2021
Solved

Searching the specific string in array values of constants

  • April 21, 2021
  • 9 replies
  • 0 views

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_VALUES
with 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.

    Best answer by csteward

    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 :) 

    9 replies

    danny.verb
    Brainy
    April 21, 2021

    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?

    mikes0011
    Brainy
    April 21, 2021

    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.

    The Expression Guru
    Brainy
    April 21, 2021

    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.