<?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>Download excel</title><link>https://community.appian.com/discussions/f/best-practices/23573/download-excel</link><description>Hi, 
 
 I have a scenario where based on my selection on grid(which is record type) I fetch data based on selected grid Ids and provide excel with that data. 
 Data to be shown on excel is from various table selected grid Id would help me get those data</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Download excel</title><link>https://community.appian.com/thread/90520?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 08:58:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce98f56b-867d-4612-b0a7-b3bba2374c37</guid><dc:creator>priyas0007</dc:creator><description>&lt;p&gt;Indeed it is!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download excel</title><link>https://community.appian.com/thread/90519?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 08:56:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ef6f5662-eb35-4935-9335-d27b98631764</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;Seems like an uncommon use case to export such a large data set.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But, you can use the smart service iteratively to achieve this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download excel</title><link>https://community.appian.com/thread/90517?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 08:42:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:343be528-f2c5-4b20-b01e-a1312ce5dd54</guid><dc:creator>priyas0007</dc:creator><description>&lt;p&gt;No I will be fetching from multiple tables to create the excel so 250+ columns&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download excel</title><link>https://community.appian.com/thread/90484?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 23:41:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b6ecdd37-e091-4d99-a592-558e6fdeca73</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/priyas0007"&gt;priyas0007&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Well, as per Appian &lt;a href="https://docs.appian.com/suite/help/21.4/Export_To_Excel_Smart_Service.html#:~:text=with%20a!querySelection().-,The%20selection%20accepts%20up%20to%2050%20columns.,-No"&gt;documentation&lt;/a&gt;, the selection accepts up to 50 columns. So, I don&amp;#39;t think its possible to extract more than 50 columns in one call.&lt;/p&gt;
&lt;p&gt;Off course, as you mentioned you can call, like 6 times to query up to 300 columns iteratively.&lt;/p&gt;
&lt;p&gt;These smart services are for dumping excel exports mostly and for transposing, you should somehow make that within your database view.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, to get it right, before the data is transposed, i.e. currently how your data is stored in the database, does it contain 250+ columns ?&lt;/p&gt;
&lt;p&gt;Or, once you transpose, you are expecting ~250 columns?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download excel</title><link>https://community.appian.com/thread/90474?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 20:25:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c1223fe1-c1fc-4a39-9aa9-f11f95be0a97</guid><dc:creator>priyas0007</dc:creator><description>&lt;p&gt;Thanks &lt;a href="/members/agamb0001"&gt;agam&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have 250+ columns of data to be fetched from different tables(which I am planning to get in batches) is there a way we can get more than 50 columns in a call?&lt;/p&gt;
&lt;p&gt;Additionally I need to get data in transposed way, I don&amp;#39;t see any parameter for that, custom cell position and value won&amp;#39;t work if I use same node in iterative way , I will have to use 6 calls for same smart service to get this done.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a better way for this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download excel</title><link>https://community.appian.com/thread/90345?ContentTypeID=1</link><pubDate>Sat, 29 Jan 2022 08:34:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3eb5b955-922d-4a20-a98b-b446733cbeef</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/priyas0007"&gt;priyas0007&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Making a stored procedure&amp;nbsp;would not be performant always and will include putting more development effort as well&lt;/p&gt;
&lt;p&gt;I would suggest to use&amp;nbsp;a!exportDataStoreEntityToExcel() function or&amp;nbsp;Export Data Store Entity to Excel smart service to export your data as excel.&lt;/p&gt;
&lt;p&gt;These out of the box functions are optimised automatically to scale up even if your data gets large.&lt;/p&gt;
&lt;p&gt;You can read about them here:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.4/Export_To_Excel_Smart_Service.html#supported-excel-formatting"&gt;https://docs.appian.com/suite/help/21.4/Export_To_Excel_Smart_Service.html#supported-excel-formatting&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Since your data to be exported has to be fetched from different tables, you can first create a view and create a respective data store entity of this view.&lt;/p&gt;
&lt;p&gt;And, later use this entity to export&amp;nbsp;your excel. The id&amp;#39;s selected for export on the grid can be passed as a query filter in the above function / smart service.&lt;/p&gt;
&lt;p&gt;You can view an example &lt;a href="https://docs.appian.com/suite/help/21.4/Export_To_Excel_Smart_Service.html#example"&gt;here&lt;/a&gt; for implementing this function&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>