<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Code Stage Append dynamic fields to Existing collection in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Code-Stage-Append-dynamic-fields-to-Existing-collection/m-p/47520#M3247</link>
    <description>Are you overwriting the collection on each iteration of the loop? You should be appending a new row each time, so in your code stage add a collection input param rather than instantiating the datatable t.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 14 May 2020 08:21:00 GMT</pubDate>
    <dc:creator>John__Carter</dc:creator>
    <dc:date>2020-05-14T08:21:00Z</dc:date>
    <item>
      <title>Code Stage Append dynamic fields to Existing collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Stage-Append-dynamic-fields-to-Existing-collection/m-p/47519#M3246</link>
      <description>Hi i have built a process where in a loop im using post request for each request i will get values and those values should be append to collection i should achieve this without using blueprism in-built vbo's .Should achieve only through code stage.Below is my code name,company,fqa are dynamic variables and file,doc,salar are rows i have written code to achieve this but collection contains only last value can any one help me to solve this issue.Thanks in Advance.&lt;BR /&gt;&lt;BR /&gt;DataTable t = new DataTable();&lt;BR /&gt;DataRow row;&lt;BR /&gt;t = inpcollection;&lt;BR /&gt;row = t.NewRow();&lt;BR /&gt;row["file"] = namee;&lt;BR /&gt;row["doc"] = company;&lt;BR /&gt;row["salar"] = fqa ;&lt;BR /&gt;t.Rows.Add(row);&lt;BR /&gt;opcollection = t;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dhanekula Gowtham&lt;BR /&gt;Dot Net Developer&lt;BR /&gt;intain technologies pvt limited&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 13 May 2020 18:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Stage-Append-dynamic-fields-to-Existing-collection/m-p/47519#M3246</guid>
      <dc:creator>GowthamDhanekul</dc:creator>
      <dc:date>2020-05-13T18:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: Code Stage Append dynamic fields to Existing collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Stage-Append-dynamic-fields-to-Existing-collection/m-p/47520#M3247</link>
      <description>Are you overwriting the collection on each iteration of the loop? You should be appending a new row each time, so in your code stage add a collection input param rather than instantiating the datatable t.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 May 2020 08:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Stage-Append-dynamic-fields-to-Existing-collection/m-p/47520#M3247</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2020-05-14T08:21:00Z</dc:date>
    </item>
  </channel>
</rss>

