<?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>How to insert data into DB in case of nested cdt?</title><link>https://community.appian.com/discussions/f/data/28014/how-to-insert-data-into-db-in-case-of-nested-cdt</link><description>There is a requirement where i have to insert nested CDT(one to many) data into table and then read in another process model. 
 Parent CDT : policyDetails 
 policynumber 
 customerId 
 actiontype 
 nomineeDetails 
 Child CDT= nomineeDetails 
 { 
 title</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to insert data into DB in case of nested cdt?</title><link>https://community.appian.com/thread/109025?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 15:50:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2658433d-67b3-4d0e-83fb-f361e4c62b15</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;&lt;span&gt;Appian recommends using nested relationships&amp;nbsp;&lt;/span&gt;&lt;strong&gt;ONLY&amp;nbsp;&lt;/strong&gt;&lt;span&gt;for one-to-one and many-to-one relationships. One-to-many and many-to-many relationships should be&amp;nbsp;&lt;/span&gt;&lt;span&gt;flat to avoid performance issues when querying data.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to insert data into DB in case of nested cdt?</title><link>https://community.appian.com/thread/109020?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 14:59:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9f499d73-769d-47f2-925e-d71ae9369cc2</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Please have a look at this page:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.1/CDT_Relationships.html#cascade"&gt;https://docs.appian.com/suite/help/23.1/CDT_Relationships.html#cascade&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Depending on the cascade type you can just write the data through the parent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to insert data into DB in case of nested cdt?</title><link>https://community.appian.com/thread/109014?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 12:39:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a5601ffc-ad4c-47e8-9daa-304bcb2e1fda</guid><dc:creator>Hemant Borate</dc:creator><description>&lt;p&gt; Thanks for quick reply. We have a Parent-Child relationship which is One to Many(One policy holder can have multiple nominee details)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to insert data into DB in case of nested cdt?</title><link>https://community.appian.com/thread/109013?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 12:30:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9fc079a6-db13-4b4d-a3de-93788438038a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;That depends a bit on the type of relationship. Reference vs. Parent-Child.&lt;/p&gt;
&lt;p&gt;And I don&amp;#39;t think you need MNI. You can just write multiple items in one go.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>