<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>CDT  with array field saved as 2 tables in DB</title><link>https://community.appian.com/discussions/f/general/26080/cdt-with-array-field-saved-as-2-tables-in-db</link><description>I have a CDT &amp;quot;Variation&amp;quot; that has a field &amp;quot;size&amp;quot; with multiple text values(array field). This is saved in the DB as 2 seperate tables, namely, Variation and one appian generated table. 
 Now i am not able to see the field &amp;quot;size&amp;quot; in the recordtype of Variation</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: CDT  with array field saved as 2 tables in DB</title><link>https://community.appian.com/thread/102155?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 06:01:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a84bc38-78c8-4fac-a070-69f8f9d9ca2d</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Download the CDT via XSD and edit it. That should give to access to these properties.&amp;nbsp;&lt;br /&gt;Or you can directly update that via alter commands on the DB itself and Verify the mapping again in the DS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT  with array field saved as 2 tables in DB</title><link>https://community.appian.com/thread/102150?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 05:56:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5baf6804-3334-423b-9a71-9c2490c4d20a</guid><dc:creator>Anuradha C</dc:creator><description>&lt;p&gt;That table is generated automatically.&amp;nbsp;Primary key, index key etc it has been set automatically. Should i change it? If so how?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT  with array field saved as 2 tables in DB</title><link>https://community.appian.com/thread/102147?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 05:54:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79882e9c-2e15-451b-9fb8-345e2e1ea501</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;The first column should be the Primary key. The last column should be a foreign key.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT  with array field saved as 2 tables in DB</title><link>https://community.appian.com/thread/102143?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 05:47:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:827e75fb-230b-4d7c-bb4d-89cdb5166642</guid><dc:creator>Anuradha C</dc:creator><description>&lt;p&gt;It is an auto generated table with a combination of two fields as primary key. It uses index to refer back to the Variations table. So cannot make changes to that. Not able to generate a recordtype too. If i could generate a recordtype then it is easy to fetch related data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT  with array field saved as 2 tables in DB</title><link>https://community.appian.com/thread/102125?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 13:55:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6e02ea77-af22-4dcf-b56b-04bbca859cce</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;The last column shouldn&amp;#39;t be a primary key. You cannot have more than one of such keys.&amp;nbsp;&lt;br /&gt;Drop the primary key constraint from the last column.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT  with array field saved as 2 tables in DB</title><link>https://community.appian.com/thread/102124?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 13:49:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f183b235-543f-4d95-91f8-63ff77d83c1d</guid><dc:creator>Anuradha C</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1664459432542v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT  with array field saved as 2 tables in DB</title><link>https://community.appian.com/thread/102123?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 13:49:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7c4da30e-179c-482e-a673-71764d76961e</guid><dc:creator>Anuradha C</dc:creator><description>&lt;p&gt;not able to create a recordtype&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1664459368085v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT  with array field saved as 2 tables in DB</title><link>https://community.appian.com/thread/102120?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 13:39:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca1edf34-268c-4527-b289-5246bc6c185b</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Yes. Or else, you will have to use two query entities. First one to query the data from Variation table and then take the variation Id, pass that as a filter in the size table and query data from that table.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT  with array field saved as 2 tables in DB</title><link>https://community.appian.com/thread/102118?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 13:38:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a7ba5f8-884a-48c9-bf12-ca59f3fff124</guid><dc:creator>Anuradha C</dc:creator><description>&lt;p&gt;Harshit, do i need to create a recordtype for the appian generated table first?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT  with array field saved as 2 tables in DB</title><link>https://community.appian.com/thread/102117?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 13:37:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f725992c-24b0-46d5-b426-d6194246208a</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;As this is a one to many relationship where one variation is associated with multiple size, so you should have the variation primary key in the size table (auto generated by Appian).&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You can use the record relationships here to link the two records and get the data from the related record.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>