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
8 replies
Subscribers
8 subscribers
Views
3663 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Is there any way to retrieve the fields of CDT and store in a variable (multiple
Amit Mishra
over 8 years ago
Is there any way to retrieve the fields of CDT and store in a variable (multiple type)? Scenario: I have to fetch all the fields of CDT (like- EmpId, EmpName, DOJ etc.) and showed them in a drop down options of a form interface.
OriginalPostID-221268
OriginalPostID-221268
Discussion posts and replies are publicly visible
Parents
0
chetany
A Score Level 1
over 8 years ago
Hi Amit, I have one approach - tested and it works.
Use the following expression:
fn!split(fn!stripwith(fn!tostring(type!CDT_NAME()) , "=[]"),",")
where CDT_NAME is the name of your CDT - like Employee_CDT.
This will return you a list of text - each element in the list will be a field in the CDT.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
chetany
A Score Level 1
over 8 years ago
Hi Amit, I have one approach - tested and it works.
Use the following expression:
fn!split(fn!stripwith(fn!tostring(type!CDT_NAME()) , "=[]"),",")
where CDT_NAME is the name of your CDT - like Employee_CDT.
This will return you a list of text - each element in the list will be a field in the CDT.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data