<?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 query first row from a datasubset</title><link>https://community.appian.com/discussions/f/process/39402/how-to-query-first-row-from-a-datasubset</link><description>Hi All, 
 I have my expression rule as below and I&amp;#39;m trying to get 100 records in 1 batch to pass to the process model. Now I need to fetch the 1st row from this rule output into a process model - perform some action and then loop back to fetch the second</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to query first row from a datasubset</title><link>https://community.appian.com/thread/149643?ContentTypeID=1</link><pubDate>Sun, 06 Jul 2025 18:08:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:290fd350-7ba8-42f1-bc46-77b9b7cc0e40</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello &lt;a href="/members/manavik105"&gt;Dusty&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend fetching the data once and configure a MNI where you are using this data and save the instance index in a process variable and use this value to index the data that has already been fetched.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to query first row from a datasubset</title><link>https://community.appian.com/thread/149638?ContentTypeID=1</link><pubDate>Sat, 05 Jul 2025 08:24:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6f605424-022b-41bb-8436-f1189de19a58</guid><dc:creator>EREN_YEAGER</dc:creator><description>&lt;p data-start="76" data-end="362"&gt;Hi, you can fetch all the rows in the process model and use &lt;strong data-start="136" data-end="169"&gt;MNI (Multiple Node Instances)&lt;/strong&gt; on the desired node or subprocess to process each row individually. Alternatively, you can loop through the rows using process variables like &lt;code data-start="312" data-end="326"&gt;currentIndex&lt;/code&gt; combined with conditional gateways.&lt;/p&gt;
&lt;p data-start="364" data-end="579"&gt;If you want your rule to return only one row at a time, you&amp;rsquo;ll need to pass an input (e.g., &lt;code data-start="456" data-end="470"&gt;currentIndex&lt;/code&gt;) to the rule, which determines the current iteration and fetches the corresponding item based on that index via index() or property function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to query first row from a datasubset</title><link>https://community.appian.com/thread/149637?ContentTypeID=1</link><pubDate>Sat, 05 Jul 2025 03:49:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a601e5cd-0b8e-404f-a4fa-1679d55c2527</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;What action you want to perform on the datasubset rows individually?&lt;/p&gt;
&lt;p&gt;can they be done in an expression instead of process model?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>