<?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 to Extract Excel sheet by expression rule?</title><link>https://community.appian.com/discussions/f/process/28026/how-to-extract-excel-sheet-by-expression-rule</link><description>when user upload any kind of excel sheet then interface will extract data and show the user the data. 
 I have created a Expression rule 
 readexcelsheetpaging( excelDocument : todocument(ri!ExtratExcel), sheetNumber : 0, pagingInfo:a!pagingInfo(startIndex</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to Extract Excel sheet by expression rule?</title><link>https://community.appian.com/thread/109118?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 15:13:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f8836856-e409-4442-b56a-d0beb5d96498</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;If your question is how to configure a script task, look at the following.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/pastedimage1678374890583v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Extract Excel sheet by expression rule?</title><link>https://community.appian.com/thread/109065?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 07:01:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:34c3d7af-b3c2-4a9e-9f3e-c500f76b6de7</guid><dc:creator>Mallepu Prashanth </dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/nayanb"&gt;nayanb&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can use the below expression to extract Excel data, then you can show it in a grid without using Process model.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!read: readexcelimportfile(
    excelDocument:ri!file,
    sheetNumber:0,
    startRow:2,
    numberOfColumns:7
  ).result,
  a!forEach(
    items: index(local!read,&amp;quot;values&amp;quot;,null),
    expression: &amp;#39;type!{urn:com:appian:types:PP}PP_XL&amp;#39;(
      id: fv!index,
      ename: index(fv!item,2,null()),
      dob: index(fv!item,3,null()),
      email: index(fv!item,4,null()),
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Extract Excel sheet by expression rule?</title><link>https://community.appian.com/thread/109057?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 06:30:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6afbe064-7a23-4f34-9430-fc4d2ce51620</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;In the script task, go to the output node. In this node, you can assign custom values to your process variables.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the value, call this expression rule&amp;nbsp;using the rule! domain and pass your document type process variable in the &amp;#39;ExtractExcel&amp;#39; rule input of the rule.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Next, in the save into of the output variable, create a new variable that will be of type DataSubset.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is how you call in the process. Or, another way is to let the user upload the document on one screen, and in the same process, add another UIT and chain them together and call this rule on the second interface mapped as the UIT.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Extract Excel sheet by expression rule?</title><link>https://community.appian.com/thread/109055?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 06:16:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7a7dd22b-22a9-4509-aca0-5bfbd524ab2a</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;Hi, instead of fetching the data in the process model and passing it to the interface use the rule directly in the interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>