<?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 do I access the result data in the Custom Output of the Query Database Smart Service?</title><link>https://community.appian.com/discussions/f/data/28918/how-do-i-access-the-result-data-in-the-custom-output-of-the-query-database-smart-service</link><description>I want to access sql result data in Custom Output of Query Database Smart Service, but I get an error. 
 I would like to access the ResultSets, like in the Execute Stored Procedure Smart Service if possible, can I achieve the same operation in the Query</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How do I access the result data in the Custom Output of the Query Database Smart Service?</title><link>https://community.appian.com/thread/114093?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 08:54:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5ee586a-9599-4f8f-9e19-fcfe7a285e2f</guid><dc:creator>tomoo7550</dc:creator><description>&lt;p&gt;Thank you for your confirmation. I will consider reviewing the data structure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I access the result data in the Custom Output of the Query Database Smart Service?</title><link>https://community.appian.com/thread/114089?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 08:36:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8016fa25-2884-4f12-a3eb-186652c2792a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I highly recommend to use the latest Data Fabric features and synced records to implement complex queries.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I access the result data in the Custom Output of the Query Database Smart Service?</title><link>https://community.appian.com/thread/114088?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 08:09:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c08c4cdf-d6bf-4c99-a22d-ac95bc264794</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;Query entities are best when you are querying data from a RDBMS. If the data is complex then a DB view&amp;nbsp;can act&amp;nbsp;as a DSE or as you said procedures can also be used. But as Harshit said, using &lt;a href="https://docs.appian.com/suite/help/23.2/record-type-relationships.html"&gt;Records with relationships&lt;/a&gt; is considered more preferable and recommended solution to the underlying condition these days.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I access the result data in the Custom Output of the Query Database Smart Service?</title><link>https://community.appian.com/thread/114087?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 07:49:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:20f073d6-ef10-4503-a1ff-305d285df211</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Use records and record relationships. They were designed for connecting data, and aggregating them while keeping the maximum performance.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I access the result data in the Custom Output of the Query Database Smart Service?</title><link>https://community.appian.com/thread/114085?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 07:43:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6b19ac0e-bd51-48c2-84de-676f3dac5de9</guid><dc:creator>tomoo7550</dc:creator><description>&lt;p&gt;I am looking for an approach other than QueryEntities to perform complex joins between tables, etc.&lt;/p&gt;
&lt;p&gt;I am also considering other methods using procedures, but would you say that using QueryEntities is more Appian compliant?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I access the result data in the Custom Output of the Query Database Smart Service?</title><link>https://community.appian.com/thread/114083?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 07:33:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2c2bbaaf-f6df-4fde-b21c-a36560748284</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;Just out of curiosity, any specific reason for using Query Database node instead of a!queryentity() ? this is very rarely used and other options should be considered first.&lt;/p&gt;
&lt;p&gt;Still, if you want to index the result sets, you need to store them in a pv! and index those pv! in a script task next to this node.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I access the result data in the Custom Output of the Query Database Smart Service?</title><link>https://community.appian.com/thread/114078?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 07:11:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e32a0487-0c09-425f-b254-40526ab18039</guid><dc:creator>tomoo7550</dc:creator><description>&lt;p&gt;This code is under consideration and does not work.&lt;/p&gt;
&lt;p&gt;What I would like to achieve is a map to the CDT structure with custom output.&lt;/p&gt;
&lt;p&gt;The best practice might be to store each item of the result in a process variable, but we are considering whether it is possible to implement this in a way that it can be used around QueryDatabase.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1686553866075v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I access the result data in the Custom Output of the Query Database Smart Service?</title><link>https://community.appian.com/thread/114077?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 07:10:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f399b244-eb0c-4344-aecf-c0794a371d60</guid><dc:creator>tomoo7550</dc:creator><description>&lt;p&gt;This code is under consideration and does not work.&lt;/p&gt;
&lt;p&gt;What I would like to achieve is a map to the CDT structure with custom output.&lt;/p&gt;
&lt;p&gt;The best practice might be to store each item of the result in a process variable, but we are considering whether it is possible to implement this in a way that it can be used around QueryDatabase.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1686553848209v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I access the result data in the Custom Output of the Query Database Smart Service?</title><link>https://community.appian.com/thread/114065?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 06:29:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bb296d7b-c9e2-4138-a7dd-641b63fe3f54</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Your description and screenshot are miles apart. And I am not clear what are you trying to achieve with that code in your screenshot.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I access the result data in the Custom Output of the Query Database Smart Service?</title><link>https://community.appian.com/thread/114063?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 06:08:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:695cbaa8-0c37-4079-888f-0c3c34d4364e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Is your code snippet just a non-working example or your final code?&lt;/p&gt;
&lt;p&gt;Appian describes in the documentation how to do that:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/23.2/Query_Database_Smart_Service.html#data-tab"&gt;https://docs.appian.com/suite/help/23.2/Query_Database_Smart_Service.html#data-tab&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>