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
13520 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
sikhivahans
over 8 years ago
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(
entity: cons!SSB_IAL_EMP_DETAILS,
query: a!query(
pagingInfo: a!pagingInfo(
1,
-1
)
)
).data
)
On a side note, a!applyComponents() imposes burden as cast function is being invoked in an iterative manner over each record in the data subset. This isn't needed when fn!cast() is able to deal with arrays based on the data type inputted to it.
Cancel
Vote Up
+2
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sikhivahans
over 8 years ago
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(
entity: cons!SSB_IAL_EMP_DETAILS,
query: a!query(
pagingInfo: a!pagingInfo(
1,
-1
)
)
).data
)
On a side note, a!applyComponents() imposes burden as cast function is being invoked in an iterative manner over each record in the data subset. This isn't needed when fn!cast() is able to deal with arrays based on the data type inputted to it.
Cancel
Vote Up
+2
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data