Skip to main content
mohdk0002
Inspiring
Sep 19, 2022 5:16 AM UTC
Solved

Getting Alias along with values expression rule

Hi,

I am writing an expression rule to get a list of values from a table, which I will later show in a dropdown but as you can see along with table values I am also getting "ALIAS" and then a colon.
I do not want Alias, I just want the values, please let me know what todo.

I have used also used .data at the end.

harshitb6843
Brainy
Sep 19, 2022 6:00 AM UTC

Wherever you will be calling this expression rule, there instead of dot operator, you can use the index function. 
Like index(rule!yourrulename(), "Issue",{})

6 replies

Inspiring
Sep 19, 2022 5:45 AM UTC

You can use index function to get only values from the map.

mohdk0002
mohdk0002Author
Inspiring
Sep 19, 2022 5:57 AM UTC

Hi, [mention:6a17174541734ea98f60de800dbbac95:e9ed411860ed4f2ba0265705b8793d05] I am very new to Appian, and these values I am pulling from a database table, any suggestions on how to use the index in my scenario?

harshitb6843
Brainy
Sep 19, 2022 6:00 AM UTC

Wherever you will be calling this expression rule, there instead of dot operator, you can use the index function. 
Like index(rule!yourrulename(), "Issue",{})