<?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>Reg: readexcelsheet function</title><link>https://community.appian.com/discussions/f/data/18201/reg-readexcelsheet-function</link><description>Hi all, 
 I am getting data from excel sheet (3 Columns), I just need to validate 1 column in that excel sheet could you tell me how can i get the 1st column seperatly by using readexcelsheet() function</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Reg: readexcelsheet function</title><link>https://community.appian.com/thread/71642?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 14:49:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d75d297d-8f96-4135-ad03-a635bbe290db</guid><dc:creator>nikkheel</dc:creator><description>&lt;p&gt;&lt;span&gt;readexcelsheet(&lt;/span&gt;&lt;span&gt;cons!SD_DOC_SampleExcel&lt;/span&gt;&lt;span&gt;,0,0,2).result.values[2] this only work for 1 row data in excel&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reg: readexcelsheet function</title><link>https://community.appian.com/thread/71641?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 14:47:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5cc550e3-68af-4e52-8974-a64bd7d323bb</guid><dc:creator>Sushma Rathnaiah</dc:creator><description>&lt;p&gt;oh okay. When I tried I got perticular column 2 when I indexed 2 in&amp;nbsp;&lt;span&gt;readexcelsheet(&lt;/span&gt;&lt;span&gt;cons!SD_DOC_SampleExcel&lt;/span&gt;&lt;span&gt;,0,0,2).result.values[2]. First readexcel result giving 2 columns, later index of value is giving 2nd column details. Below code will also work, as it is pulling perticular column in a forloop.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reg: readexcelsheet function</title><link>https://community.appian.com/thread/71639?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 14:43:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7cb0d7ea-03d9-4df4-833e-2ff2134eaae6</guid><dc:creator>nikkheel</dc:creator><description>&lt;p&gt;this is working Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reg: readexcelsheet function</title><link>https://community.appian.com/thread/71638?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 14:43:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae7838b7-725a-4bf0-8143-435f2dbcc9e3</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I don&amp;#39;t believe this is correct - when I tried it, I verified that it returns data for a row and not for a column, just like @nikkheel said.&amp;nbsp; The method I posted below should work for pulling from a specific column.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reg: readexcelsheet function</title><link>https://community.appian.com/thread/71637?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 14:38:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9f856b6-e443-4de1-9a98-8fb7240d7748</guid><dc:creator>Sushma Rathnaiah</dc:creator><description>&lt;p&gt;Yes, it will return perticular column of data. So that you will be having column 2 data. now you can validate the column 2 as per your buisness rules.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reg: readexcelsheet function</title><link>https://community.appian.com/thread/71634?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 12:53:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2b40da8-dd8f-42f2-844f-371140114293</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This is a good use case for a!forEach - since without looping over the returned data, it&amp;#39;s difficult to index into a particular column (since as you noted in a previous reply, the first attempt to index automatically narrows the result down to that row).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(

  local!excelData: readexcelsheet(
    ...
  ).result,
  
  local!column1data: a!forEach(
    local!excelData,
    
    index(fv!item.values, 1, null()) /* replace &amp;quot;1&amp;quot; with any other column number you want to grab */
  ),
  
  local!column1data
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reg: readexcelsheet function</title><link>https://community.appian.com/thread/71633?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 10:28:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:428231d6-6384-43c9-b2ef-f7c7dccaded8</guid><dc:creator>nikkheel</dc:creator><description>&lt;p&gt;this is returning row&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reg: readexcelsheet function</title><link>https://community.appian.com/thread/71625?ContentTypeID=1</link><pubDate>Sun, 26 Jan 2020 08:34:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c07497b-b0f3-49b0-b256-fc72a668006d</guid><dc:creator>Sushma Rathnaiah</dc:creator><description>&lt;p&gt;Hi Nikkheel,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Use&amp;nbsp;readexcelsheet(cons!SD_DOC_SampleExcel /* document id */,0,0,2/*which column you need to fetch*/).result.values[2&lt;span&gt;/*which column you need to fetch*/&lt;/span&gt;]&lt;/p&gt;
&lt;p&gt;readexcelsheet(&lt;span&gt;cons!SD_DOC_SampleExcel&lt;/span&gt;,0,0,2).result.values[2]&amp;nbsp; =&amp;gt; will give you list of string of that perticular column.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reg: readexcelsheet function</title><link>https://community.appian.com/thread/71600?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 13:56:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c0ac17b8-8a6a-496c-a07c-02e4c20c340c</guid><dc:creator>Krishna Chaitanya Mallavarapu</dc:creator><description>&lt;p&gt;a!localVariables(&lt;br /&gt; local!data: readexcelsheet(&lt;br /&gt; todocument(&lt;br /&gt; 123456&lt;br /&gt; ),&lt;br /&gt; 0,&lt;br /&gt; 0&lt;br /&gt; ).result.values,&lt;br /&gt; a!forEach(&lt;br /&gt; items: {&lt;br /&gt; 1,&lt;br /&gt; 2&lt;br /&gt; },&lt;br /&gt; expression: a!localVariables(&lt;br /&gt; value: fv!item,&lt;br /&gt; a!forEach(&lt;br /&gt; items: local!data,&lt;br /&gt; expression: fv!item[local!value]&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reg: readexcelsheet function</title><link>https://community.appian.com/thread/71597?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 12:43:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6c1404fa-1589-494a-be4b-feca5419cf37</guid><dc:creator>nikkheel</dc:creator><description>&lt;p&gt;if i use this i am getting 2 columns combinly&amp;nbsp;&lt;/p&gt;
&lt;p&gt;that means&amp;nbsp;&lt;/p&gt;
&lt;table style="border-collapse:collapse;width:96pt;" border="0" cellpadding="0" cellspacing="0" width="128"&gt;
&lt;tbody&gt;
&lt;tr style="height:15.0pt;"&gt;
&lt;td style="height:15.0pt;width:48pt;" height="20" width="64"&gt;Column 1&lt;/td&gt;
&lt;td style="width:48pt;" width="64"&gt;Column 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:15.0pt;"&gt;
&lt;td style="height:15.0pt;" height="20"&gt;data1&lt;/td&gt;
&lt;td&gt;data-A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="height:15.0pt;"&gt;
&lt;td style="height:15.0pt;text-shadow:0px 1px 0px;" height="20"&gt;data2&lt;/td&gt;
&lt;td&gt;data-B&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;If I use &lt;em class="EmphasisText---richtext_emphasis"&gt;numberOfColumns&amp;nbsp; i am getting&amp;nbsp;&lt;/em&gt;{data1; data-A; data2; data-B}&lt;/p&gt;
&lt;p&gt;I need output like&amp;nbsp;&lt;/p&gt;
&lt;p&gt;{&lt;span&gt;data1;data2&lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;{&lt;span&gt;data-A; data-B}&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reg: readexcelsheet function</title><link>https://community.appian.com/thread/71596?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 12:32:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb226714-e1dc-4373-bc87-7559011edb8f</guid><dc:creator>Krishna Chaitanya Mallavarapu</dc:creator><description>&lt;p&gt;in&amp;nbsp;&lt;span&gt;readexcelsheet() we have&amp;nbsp;&lt;em class="EmphasisText---richtext_emphasis"&gt;numberOfColumns parameter you can use that&amp;nbsp;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em class="EmphasisText---richtext_emphasis"&gt;readexcelsheet(&lt;br /&gt; todocument(&lt;br /&gt; 123456&lt;br /&gt; ),&lt;br /&gt; 0,&lt;br /&gt; 0,&lt;br /&gt; 1&lt;br /&gt;)&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em class="EmphasisText---richtext_emphasis"&gt;where 4 th parameter is&amp;nbsp;numberOfColumns&amp;nbsp;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em class="EmphasisText---richtext_emphasis"&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reg: readexcelsheet function</title><link>https://community.appian.com/thread/71595?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 12:22:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a86b77c0-630a-40cf-9166-9f1792abcdfe</guid><dc:creator>nikkheel</dc:creator><description>&lt;p&gt;here I need 1st coumn for one validation and 2nd column for another validation Separately&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reg: readexcelsheet function</title><link>https://community.appian.com/thread/71585?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 16:12:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26049100-5ebc-4338-8e15-5a904ed4ff7f</guid><dc:creator>Dai Williams</dc:creator><description>&lt;p&gt;You should be able to index the return it gives you. When recently using this we found turning the result set in to json and then from json helped us navigate around the data set far easier and apply validation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>