<?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 Collection Manipulation in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Collection-Manipulation/m-p/86843#M37640</link>
    <description>Hi, I am looking for a solution for below 2 problem statements without custom coding, i.e. with standard BP collection VBOs. Any inputs are highly appreciated.&lt;BR /&gt;&lt;BR /&gt;1) I have declared a empty collection with no fields and rows added to it, I have to add field names and value (1 row) to this blank collection at run time. How can we do the same. Assume field names and values will be available in another collection with fieldname, values column ex. fn | val1, ln | val2 .....multiple rows.&lt;BR /&gt;&lt;BR /&gt;Input collection -&lt;BR /&gt;&lt;BR /&gt;fn|val1&lt;BR /&gt;ln|val2&lt;BR /&gt;fn1|val3&lt;BR /&gt;ln1|val4&lt;BR /&gt;&lt;BR /&gt;Output collection -&lt;BR /&gt;&lt;BR /&gt;fn|ln|fn1|ln1&lt;BR /&gt;val1|val2|val3|val4&lt;BR /&gt;&lt;BR /&gt;2) I have a parent collection with 1 field which is again a collection having 2 text fields. So collection -&amp;gt; collection -&amp;gt; text, text. This structure is defined in parent collection declared and no rows are added. At run time I have to add a row to child collection and add value to 2 text fields. Can we achieve this without adding any other collection to object except the one (parent) that was declared initially. Is there a way to add row to child with something like parentcoll.childcoll and then add values to fields. I am able to add row to parent coll but after that when adding row to child doesn't work.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mayank Goyal&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Sat, 18 Jul 2020 08:17:00 GMT</pubDate>
    <dc:creator>MayankGoyal2</dc:creator>
    <dc:date>2020-07-18T08:17:00Z</dc:date>
    <item>
      <title>Collection Manipulation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Collection-Manipulation/m-p/86843#M37640</link>
      <description>Hi, I am looking for a solution for below 2 problem statements without custom coding, i.e. with standard BP collection VBOs. Any inputs are highly appreciated.&lt;BR /&gt;&lt;BR /&gt;1) I have declared a empty collection with no fields and rows added to it, I have to add field names and value (1 row) to this blank collection at run time. How can we do the same. Assume field names and values will be available in another collection with fieldname, values column ex. fn | val1, ln | val2 .....multiple rows.&lt;BR /&gt;&lt;BR /&gt;Input collection -&lt;BR /&gt;&lt;BR /&gt;fn|val1&lt;BR /&gt;ln|val2&lt;BR /&gt;fn1|val3&lt;BR /&gt;ln1|val4&lt;BR /&gt;&lt;BR /&gt;Output collection -&lt;BR /&gt;&lt;BR /&gt;fn|ln|fn1|ln1&lt;BR /&gt;val1|val2|val3|val4&lt;BR /&gt;&lt;BR /&gt;2) I have a parent collection with 1 field which is again a collection having 2 text fields. So collection -&amp;gt; collection -&amp;gt; text, text. This structure is defined in parent collection declared and no rows are added. At run time I have to add a row to child collection and add value to 2 text fields. Can we achieve this without adding any other collection to object except the one (parent) that was declared initially. Is there a way to add row to child with something like parentcoll.childcoll and then add values to fields. I am able to add row to parent coll but after that when adding row to child doesn't work.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mayank Goyal&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Jul 2020 08:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Collection-Manipulation/m-p/86843#M37640</guid>
      <dc:creator>MayankGoyal2</dc:creator>
      <dc:date>2020-07-18T08:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: Collection Manipulation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Collection-Manipulation/m-p/86844#M37641</link>
      <description>1) Use a loop in conjunction with the Append Field action. Leaving the output collection blank, here's what it would look like:&lt;BR /&gt;&lt;BR /&gt;1. Call Add Row and add a row to the Output Collection.&lt;BR /&gt;2. Loop over the input collection.&lt;BR /&gt;3. Call Append Field on the Output Collection, the Field Name will be [Input Collection.Field1] and Value will be [Input Collection.Field2].&lt;BR /&gt;4. End loop&lt;BR /&gt;&lt;BR /&gt;2) I have not found a way to do this directly. Typically, I copy the child collection into its own collection, make the modification, then copy it back into the parent collection. The result is the same, but it is an extra step. It would be nice if Blue Prism were more cognizant of child collections in this regard.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nicholas Zejdlik&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jul 2020 13:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Collection-Manipulation/m-p/86844#M37641</guid>
      <dc:creator>NicholasZejdlik</dc:creator>
      <dc:date>2020-07-20T13:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: Collection Manipulation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Collection-Manipulation/m-p/86845#M37642</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="e42d12b2-a3f6-4f36-a821-9db8ee48b837" data-tag-text="@Nicholas Zejdlik" href="https://community.blueprism.com/network/profile?UserKey=e42d12b2-a3f6-4f36-a821-9db8ee48b837" data-itemmentionkey="421b226a-87fe-4503-b71c-4109782a14c7"&gt;@Nicholas Zejdlik&lt;/A&gt;​ - Thanks a lot for suggesting the same, please suggest how can we append fields of data type like boolean?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mayank Goyal&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jul 2020 16:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Collection-Manipulation/m-p/86845#M37642</guid>
      <dc:creator>MayankGoyal2</dc:creator>
      <dc:date>2020-07-20T16:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: Collection Manipulation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Collection-Manipulation/m-p/86846#M37643</link>
      <description>&lt;P&gt;I don't think you can with the stock Blue Prism objects; I believe the stock Collection Manipulation object only has text and numeric.&lt;BR /&gt;&lt;BR /&gt;I wrote my own version of Append Field which allows you to add any type to a collection. I know you are looking for a non-custom coding solution, but just in case it might be useful, here's what I have:&lt;BR /&gt;&lt;BR /&gt;Inputs:&lt;BR /&gt;Collection In (Collection)&lt;BR /&gt;Name (String)&lt;BR /&gt;Type (String)&lt;BR /&gt;Value (String)&lt;BR /&gt;&lt;BR /&gt;Outputs:&lt;BR /&gt;Collection Out (Collection)&lt;/P&gt;
&lt;PRE class="language-csharp"&gt;' Adds a field of the specified type to the collection&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;

' The type names must be specified with the system prefix&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt; For example&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; System&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;String&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; 
' System&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Int32&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; etc&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt; Collections are special and &lt;SPAN class="token keyword"&gt;using&lt;/SPAN&gt; the keyword &lt;SPAN class="token string"&gt;"Collection"&lt;/SPAN&gt; or
' &lt;SPAN class="token string"&gt;"System.DataTable"&lt;/SPAN&gt; will suffice&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;

If Type_Name&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;ToUpper &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"COLLECTION"&lt;/SPAN&gt; OrElse Type_Name&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;ToUpper &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"SYSTEM.DATATABLE"&lt;/SPAN&gt; Then
	Collection_In&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Columns&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Add&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Name&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;GetType&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;DataTable&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
Else
	Collection_In&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Columns&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Add&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Name&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; Type&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetType&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Type_Name&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; True&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
End If

If Not String&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;IsNullOrEmpty&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Value&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; Then
	For Each Row As DataRow In Collection_In&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Rows
		&lt;SPAN class="token function"&gt;Row&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Name&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; Convert&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ChangeType&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Value&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; Type&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetType&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Type_Name&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; True&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
	Next
End If
Collection_Out &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; Collection_In&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nicholas Zejdlik&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jul 2020 16:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Collection-Manipulation/m-p/86846#M37643</guid>
      <dc:creator>NicholasZejdlik</dc:creator>
      <dc:date>2020-07-20T16:24:00Z</dc:date>
    </item>
  </channel>
</rss>

