<?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>Combining 2 similar recordtypes</title><link>https://community.appian.com/discussions/f/data/31072/combining-2-similar-recordtypes</link><description>Hi All, 
 I have 2 tables TABLE1 and TABLE1_HISTORY. I need to combine latest 1 row from TABLE1 and few historical rows from TABLE1_HISTORY and display the values in a single grid. 
 Instead of using UNION to combine the 2 tables using DB views or querying</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Combining 2 similar recordtypes</title><link>https://community.appian.com/thread/123984?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 13:48:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1f7ef363-b532-4d25-91ee-d02ff58ac18a</guid><dc:creator>rajeshkumarr007</dc:creator><description>&lt;p&gt;yes it can work, but it is convoluted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining 2 similar recordtypes</title><link>https://community.appian.com/thread/123982?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 13:46:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:173de16c-7095-4031-b683-bba2caa1adb3</guid><dc:creator>rajeshkumarr007</dc:creator><description>&lt;p&gt;without relationships created , we will not be able to use from both tables in same customfield. When tried i got error. My issue is creating relationship between 2 tables on non pk&amp;#39;s. Thanks for the response&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining 2 similar recordtypes</title><link>https://community.appian.com/thread/123980?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 13:45:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1f4de596-1a34-4c56-988e-d9fda4141cab</guid><dc:creator>rajeshkumarr007</dc:creator><description>&lt;p&gt;Hi Mathurama,&lt;/p&gt;
&lt;p&gt;Thanks for the response , when you make the common field in TABLE 1 as unique , the same field is not unique in TableHistory . here the relation ship must 1 to many right. Might be i need to rethink of redisgn the table.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;
&lt;p&gt;Raj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining 2 similar recordtypes</title><link>https://community.appian.com/thread/123918?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2024 22:13:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b02238d6-8f03-4957-a4c5-0a6fa7cbc87a</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Only solution to this issue is somewhat convoluted. You could create a 2 Web APIs that&amp;nbsp;query the same fields on both tables. Create a&amp;nbsp;single Service Backed Synced Record Type&amp;nbsp;that&amp;nbsp;combines the results of&amp;nbsp;the 2 Web APIs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining 2 similar recordtypes</title><link>https://community.appian.com/thread/123917?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2024 18:44:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:98024ff2-405f-4ff9-99fe-bf2acea265c9</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;When creating custom record fields, you can use customfielddefaultvalue() to add values from one record to another.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.appian.com/suite/help/23.4/fnc_crf_customfielddefaultvalue.html"&gt;https://docs.appian.com/suite/help/23.4/fnc_crf_customfielddefaultvalue.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When doing so, your final record will contain fields from both &amp;quot;tables&amp;quot; and can easily be used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining 2 similar recordtypes</title><link>https://community.appian.com/thread/123916?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2024 18:39:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b63ca2aa-9ee3-4f8e-be3e-5c62d73afe16</guid><dc:creator>mathurambika0708</dc:creator><description>&lt;p&gt;&lt;span&gt;In the first place, I don&amp;#39;t understand why there is no FK/PF relationship between these tables, given that the latest record in TABLE1 is going to have all its history in the TABLE1_HISTORY table.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;However, if there is a common field between these tables, and if it is going to be a unique field in the TABLE1, then you can make that column as UNIQUE in the database.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1704825284578v1.png" alt=" " /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Eventually, this configuration will allow you to pick up the common field in the Records when configuring the record relationships.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1704825495373v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining 2 similar recordtypes</title><link>https://community.appian.com/thread/123915?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2024 18:36:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f8217516-55f0-435e-8b3e-3017c26f1e2d</guid><dc:creator>rajeshkumarr007</dc:creator><description>&lt;p&gt;sorry we cannot use the queryRecordType in custom when checked, so how we make the connection without relationship or how we can use customField for relationship .&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining 2 similar recordtypes</title><link>https://community.appian.com/thread/123914?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2024 18:31:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6626dd86-3259-4618-bd18-9af95ab1b730</guid><dc:creator>rajeshkumarr007</dc:creator><description>&lt;p&gt;Hi Stefan ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the response. Are you suggesting have a customfield created which is fed by a queryRecordType on TableHistory table with filter on common field value ? Then when we want to display both records in same grid , i guess it may get complicated . Or i might missed to understand your response :-( sorry . Could you please provide any sample or link in appian forums if you have it handy .&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Raj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining 2 similar recordtypes</title><link>https://community.appian.com/thread/123912?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2024 18:22:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b95a9b0-a53f-4c64-95f0-f270bdd9e48a</guid><dc:creator>rajeshkumarr007</dc:creator><description>&lt;p&gt;Hi Mathurama,&lt;/p&gt;
&lt;p&gt;Thanks for the response . Yes , it kind of&amp;nbsp; audit . But the history cannot be pulled using the relationship ,as including the PK from table 1&amp;nbsp; is moved to history . The relationship / connection between these tables are is on a common field , not as a PK or FK relationship.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Table 1 stores only 1 latest record for a particular workitem . all history is stored in Table1History and only during the grid creation i need to pull combined from both recordtype . I will be able to combine using a generic VO object , but trying to understand any way using recordtype in built functionalities.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Raj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining 2 similar recordtypes</title><link>https://community.appian.com/thread/123910?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2024 18:22:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f79b7b40-c5a6-4211-95d2-89444d37b456</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Spammy spam, oh so sly,&lt;br /&gt;Filling inboxes, oh my, my.&lt;br /&gt;Clickbait words and tricks they play,&lt;br /&gt;Trying to lead us all astray.&lt;/p&gt;
&lt;p&gt;Spammy spam, we&amp;rsquo;ll delete you,&lt;br /&gt;No more tricks, we see right through.&lt;br /&gt;Unwanted emails, be gone far,&lt;br /&gt;Spammers, you won&amp;rsquo;t get too far.&lt;/p&gt;
&lt;p&gt;Spammy spam, just a bother,&lt;br /&gt;Trying to sell what we don&amp;rsquo;t want, brother.&lt;br /&gt;We&amp;rsquo;ll report you, make you flee,&lt;br /&gt;No more spamming, let us be free.&lt;/p&gt;
&lt;p&gt;Spammy spam, it&amp;rsquo;s no game,&lt;br /&gt;We won&amp;rsquo;t fall for your false claim.&lt;br /&gt;Respect our inbox, hear our plea,&lt;br /&gt;Spammers, now it&amp;#39;s time to flee.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining 2 similar recordtypes</title><link>https://community.appian.com/thread/123906?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2024 18:16:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d218963f-3bec-4d5d-b4c1-1951225ff7c6</guid><dc:creator>waden3810</dc:creator><description>[deleted]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining 2 similar recordtypes</title><link>https://community.appian.com/thread/123905?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2024 18:04:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ceea531-bf3a-4093-9578-869b0b3f8a81</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Should be simple. You can create custom record fields in the primary record that reference field from the other one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining 2 similar recordtypes</title><link>https://community.appian.com/thread/123904?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2024 18:03:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5d2f111-bd53-43d5-b4d5-e26c3d332be1</guid><dc:creator>mathurambika0708</dc:creator><description>&lt;p&gt;Hi Raj,&lt;/p&gt;
&lt;p&gt;When you say TABLE1_HISTORY, does it contain the audit details of TABLE1, or are we storing all updates to TABLE1 in TABLE1_HISTORY?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>