Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
Replies
6 replies
Answers
4 answers
Subscribers
8 subscribers
Views
4907 views
Users
0 members are here
Appian
Interface
process model
expression rule
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
how to cast CDT Type to record type ?
Klaus34
over 1 year ago
Any idea on how to cast cdt to record type
Discussion posts and replies are publicly visible
Top Replies
Harshit Bumb (Appyzie)
over 1 year ago
+1
suggested
Certified Lead Developer
You can do it like this recordType!Student( recordType!Student.fields.name: local!student.name ) Just make sure to replace recordType! with your actual record properties.
Abhay Dalsaniya
over 1 year ago
+1
suggested
Certified Lead Developer
Using cast() function. cast( 'recordType!{xx-xx-xx-xx-xxx}Employee', 'type!{urn:com:appian:types:HROB}Employee_CDT'( id: 1, name: "Abc", department: "IT", salary: 123, age: 25 ) …
Harshit Bumb (Appyzie)
over 1 year ago
in reply to
Abhay Dalsaniya
+1
Certified Lead Developer
Cast will only work if the keys (field names) of the CDT and the record is exactly the same.