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
+1
person also asked this
people also asked this
Replies
4 replies
Subscribers
9 subscribers
Views
6795 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
How can I use cast() in an expression to cast something to an array of a CDT? I
Jason Ruvinsky
Certified Senior Developer
over 11 years ago
How can I use cast() in an expression to cast something to an array of a CDT? I can cast to a single version of the CDT with cast('type!{namespace}type-name',{fieldName:ri!fieldName}) How can I do this with multiples?
I've been browsing the docs, if there is a good page that explains this I would appreciate the pointers. I think that cast() documentation could be enhanced with some additional examples, too. Thanks!...
OriginalPostID-91434
OriginalPostID-91434
Discussion posts and replies are publicly visible
Parents
0
Jason Ruvinsky
Certified Senior Developer
over 11 years ago
As an example: I have a Rule that takes an array of a CDT as a parameter, however I have to specify "Any Type" for the parameter. If I want to explicitly cast it to the array of the CDT before using it in the rule, is there a way to do this? I could do it for a singular CDT as
=with(a:cast('type!{namespace}type-name',{ri!myCDTParameter}), expression_that_uses_the_cdt)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Jason Ruvinsky
Certified Senior Developer
over 11 years ago
As an example: I have a Rule that takes an array of a CDT as a parameter, however I have to specify "Any Type" for the parameter. If I want to explicitly cast it to the array of the CDT before using it in the rule, is there a way to do this? I could do it for a singular CDT as
=with(a:cast('type!{namespace}type-name',{ri!myCDTParameter}), expression_that_uses_the_cdt)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data