Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
7 subscribers
Views
3555 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
If I have a CDT is there any way for me to list out each of its fields by name d
robbier
over 9 years ago
If I have a CDT is there any way for me to list out each of its fields by name dynamically? I was playing around with some of the functions but haven't seen anything yet.
OriginalPostID-166634
OriginalPostID-166634
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 9 years ago
=split(stripwith(tostring(ri!myAnyTypeRuleInput),"[]="),",")
and when invoking this simply pass the desired local variable holding the data. Since the rule takes Any Type anything can be passed and if the local variable contains a CDT then the tostring() will take care of this without the need for the type! constructor.
I used the type!() constructor as an example, but any local variable, acp or pv or rule input will work.
Example:
1. My rule is defined as =split(stripwith(tostring(ri!myAnyTypeRuleInput),"[]="),",")
2. I name this rule: myProject_getCDTFields
3. I invoke it as
rule!myProject_getCDTFields(local!myVariableThatHoldsCDTData)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 9 years ago
=split(stripwith(tostring(ri!myAnyTypeRuleInput),"[]="),",")
and when invoking this simply pass the desired local variable holding the data. Since the rule takes Any Type anything can be passed and if the local variable contains a CDT then the tostring() will take care of this without the need for the type! constructor.
I used the type!() constructor as an example, but any local variable, acp or pv or rule input will work.
Example:
1. My rule is defined as =split(stripwith(tostring(ri!myAnyTypeRuleInput),"[]="),",")
2. I name this rule: myProject_getCDTFields
3. I invoke it as
rule!myProject_getCDTFields(local!myVariableThatHoldsCDTData)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data