Hello All,
We observed one issue
1. Parent CDT -> one of the columns type is document
2. We updated the child CDT (added a new column) upon updating the child CDT, the parent CDT filed type changed from document to anytype.
Did anyone face the same issue?
Discussion posts and replies are publicly visible
I do not really understand.
In the parent there is a field of type document. Then there is some, probably nested, child CDT.
What do you mean with "added a new column"? Is this about a new field?
Where do you see this behaviour? Do you have some code you can share?
Hello
1. Parent CDT with document field and child CDT.
2.
2.1 Child CDT before the update
2.2 Added new field in the CDT
3. After Step 2.2 parent CDT's fields type changed from document to number
Thank You,
Sneha.
The data type "document" does only exist inside Appian. If you modify it outside of Appian, it will turn into an integer as this is the underlying representation.
I consider this to be expected behaviour.
BTW, I recommend to manage the data structures only in CDTs and let Appian maintain the DB schema. I think this fits the low-code spirit of Appian way better than hand crafted XSDs or SQL scripts.
Parent CDT is transient CDT ( not added to any data store/ CDT is not mapped any table in DB).
In this case, is it expected that parent CDT data types that exist only in Appian get changed to number/ any type ?
Sorry, I didn't understand "I recommend to manage the data structures only in CDTs and let Appian maintain the DB schema", can you please explain with an example?