<?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>Create a sequence of number based on number of repetition and master contract number</title><link>https://community.appian.com/discussions/f/data/26746/create-a-sequence-of-number-based-on-number-of-repetition-and-master-contract-number</link><description>Hi team, i am trying to to create an expression rule for my application where we have a master contract number (already created) and new child contract numbers will be generated based on the number of repetition defined. 
 Example: 
 local!contractmaster</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Create a sequence of number based on number of repetition and master contract number</title><link>https://community.appian.com/thread/104990?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 15:57:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bf1a6ed1-843c-4e35-a368-d92bb0c30329</guid><dc:creator>ladislavm0002</dc:creator><description>&lt;p&gt;thanks Chris appreciate your answer, it did work&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a sequence of number based on number of repetition and master contract number</title><link>https://community.appian.com/thread/104989?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 15:53:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc36f8c5-e363-401b-9247-b61fd7bb0c31</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Try this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!contractMaster: &amp;quot;FY2022&amp;quot;,
  local!repetition: 4,
  
  a!forEach(
    items: 1+enumerate(local!repetition),
    expression: concat(
      local!contractMaster,
      &amp;quot;_&amp;quot;,
      fv!item
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>