Hi all,
I want to get fields in a CDT based on their numerical index, i.e. if I have a CDT like:
{'type!{urn:com:appian:types:TEST}TEST_Employee'('firstName': "Frank", 'secondName': "Smith", 'age': 29)}
To get the first field, is there a way to index it by number? Something like index(local!testCdt, 1, null) would return "Frank".
Thanks for your help!
Discussion posts and replies are publicly visible
johng0005 said:How would I keep this persisted in a key-value fashion?
You can do pretty much whatever you want if you use an expression rule, FWIW
The beauty of that is, you can design an expression rule using a "black box" approach, such that you can start out with hardcoded or even "faked" values, and if/when you decide to shift to a DB-backed approach, you can simply update that expression rule to do whatever internal querying it needs to do, in order to return the same values based on the input passed in.