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
11 replies
Subscribers
8 subscribers
Views
13512 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Convert to a CDT
Soumya.Behera
over 8 years ago
Hello Everyone,
I have an expression whose output is of type "Any Type (Dictionary)". I want to typecast it into the desired CDT type. Please let me know the method.
OriginalPostID-243301
Discussion posts and replies are publicly visible
Top Replies
sikhivahans
over 8 years ago
+2
Usage of a!applyComponents() is redundant or I should say that it's not needed. The following should be enough as per my knowledge: fn!cast( fn!typeof({type!SSB_IAL_EmployeeDetails()}), a!queryEntity(…
Soumya.Behera
over 8 years ago
+1
In case anyone's wondering what exactly I did, please find attachment for the solution to my challenge. You can mould it to your requirement. solution.txt
Parents
0
Soumya.Behera
over 8 years ago
@sikhivahans Found a point worth noting. The difference is not with whether we should use fn!cast or simply cast function as both are accepting array parameters. The difference was the way I used typeNumber parameter. If I use fn!typeof({'type!{urn:com:appian:types}SSB_IAL_EmployeeDetails'()}), then it's casting all the elements in the list parameter. On the other hand if I use 'type!{urn:com:appian:types}SSB_IAL_EmployeeDetails' then it's only converting the first element of the array. Hope it helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Soumya.Behera
over 8 years ago
@sikhivahans Found a point worth noting. The difference is not with whether we should use fn!cast or simply cast function as both are accepting array parameters. The difference was the way I used typeNumber parameter. If I use fn!typeof({'type!{urn:com:appian:types}SSB_IAL_EmployeeDetails'()}), then it's casting all the elements in the list parameter. On the other hand if I use 'type!{urn:com:appian:types}SSB_IAL_EmployeeDetails' then it's only converting the first element of the array. Hope it helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data