<?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>Displaying Related Data Values</title><link>https://community.appian.com/discussions/f/new-to-appian/28007/displaying-related-data-values</link><description>Hello Community: 
 This probably a dumb question but here is my dilemma. I have two tables &amp;#39;Consolidated Product List&amp;#39; and &amp;#39;Brand Owners&amp;#39; (fields: brandIdentifier, brandOwner). The field &amp;#39;brandIdentifier&amp;#39; in Brand Owner is the foreign-key in &amp;#39;Consolidated</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Displaying Related Data Values</title><link>https://community.appian.com/thread/109015?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 12:56:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ed61c52-0010-4f2b-90c7-09e4d49d0166</guid><dc:creator>MaNa</dc:creator><description>&lt;p&gt;Thanks, Pragna - gets me one step closer to my target.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Displaying Related Data Values</title><link>https://community.appian.com/thread/108990?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 05:54:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:860146ce-a9c5-4bfe-8c32-32d751726ae0</guid><dc:creator>pragna jadda</dc:creator><description>&lt;p&gt;use index function. index(). which is index(local!integrationResponse.result.body, &amp;quot;foodNutrients&amp;quot;, {})&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Displaying Related Data Values</title><link>https://community.appian.com/thread/108972?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 21:53:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f01f916a-d682-40c3-abdb-3409b50d5dc7</guid><dc:creator>MaNa</dc:creator><description>&lt;p&gt;Hi All:&lt;/p&gt;
&lt;p&gt;First, thank you to all of you.&lt;/p&gt;
&lt;p&gt;Stefan: &amp;nbsp;I had gone through the documentation that you linked to but the example there for &amp;#39;interface&amp;#39; was for one-level. &amp;nbsp;I tried to extrapolate from the other examples to interface and I kept getting errors messages of various kinds. &amp;nbsp;I was looking to&amp;nbsp;access nested CDT(?).&lt;/p&gt;
&lt;p&gt;Peter: &amp;nbsp;As for things I tried, I tried &amp;#39;fv!row, fv!index, fv!items, &amp;#39;.fstcategory&amp;#39; and various combinations of that. &amp;nbsp;I know that some of them weren&amp;#39;t appropriate but I was throwing darts and hoping that one of them would hit. &amp;nbsp;I didn&amp;#39;t think of using &amp;#39;RecordType&amp;#39; for the fstCategory because I didn&amp;#39;t that was of the RecordType fstCategory. &amp;nbsp;I guess, when I use relationship to extract data, I need to use RecordType.&lt;/p&gt;
&lt;p&gt;Pragna: &amp;nbsp;Your code did do what I was looking for - so, thanks.&lt;/p&gt;
&lt;p&gt;Here was the&amp;nbsp;original task that I was trying to do.&lt;/p&gt;
&lt;p&gt;I was trying to use the lesson/tutorial example from Appian Learning Course on Web Integration to extract data from USDA food database and create two tables - one for the list of products and the other a list of nutrition information for each of the products - with&amp;nbsp;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_key"&gt;gtinUpc as the key relating the two.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So, in the example below, I was trying to access the &amp;#39;foodNutrients&amp;#39; elements but I don&amp;#39;t know the &amp;#39;record!Type&amp;#39; because that entire dictionary is the result from an API call to USDA Food Database. &amp;nbsp;That is were I am stuck. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I try .foodNutrients[1], I get the foodNutrients for&amp;nbsp;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_key"&gt;gtinUpc&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;&amp;quot;028749448709&amp;quot; - Ground Beef. &amp;nbsp;However, I can not seem to access the individual nutrients like protein, etc.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Any help/hints would be appreciated. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Ma&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1678224843246v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Displaying Related Data Values</title><link>https://community.appian.com/thread/108969?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 20:43:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2d35c934-e6e3-4f26-a848-349e8f79ff85</guid><dc:creator>pragna jadda</dc:creator><description>&lt;p&gt;value: fv!row[recordtype!record.relationship.field], which is&amp;nbsp;&lt;span&gt;fv!row[recordtype!FST Consolidated Product.fstCategory.CategoryName]. for best practice we use rich text field for display values. and null checks.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Displaying Related Data Values</title><link>https://community.appian.com/thread/108967?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 20:40:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:15a67fcc-bb9d-41ad-8e1e-76592311282d</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Agreed with Stefan - can you also provide some more context on what you have tried already? Generally you can index data from records or related records using the `recordType!` syntax and referencing the field or related field you want to use.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Displaying Related Data Values</title><link>https://community.appian.com/thread/108966?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 18:01:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:64f88aac-354c-4bb3-89d6-b8956c6273d0</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I think this should get you started.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.1/reference-records.html#reference-a-record-type"&gt;docs.appian.com/.../reference-records.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>