I created cdt after that i need to add foreign key, to link into the view table
Discussion posts and replies are publicly visible
I am not sure what exactly you want to achieve, but any foreign key constraints have to be created using custom SQL scripts.
Actually, I edited my foreign key in database using SQL, but in my Data Type i can't change.Even I edited by Xcd file and i try to created new version, but is giving error
As I do not know what you want to achieve, supporting becomes mostly guesswork.
I suggest to follow this guide to design your data: docs.appian.com/.../cdt_design_guidance.html