<?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 Append Field type-collection in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46793#M2693</link>
    <description>Hi,

I want to create collection with subcollections inside one of my column.

First I download collection from sharepoint, than I would like to add column using action like append field(text) but instead of text type I want my column to have collection type.

Please let me know if you have any suggestion</description>
    <pubDate>Tue, 14 May 2019 15:06:00 GMT</pubDate>
    <dc:creator>MateuszWojcik</dc:creator>
    <dc:date>2019-05-14T15:06:00Z</dc:date>
    <item>
      <title>Append Field type-collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46793#M2693</link>
      <description>Hi,

I want to create collection with subcollections inside one of my column.

First I download collection from sharepoint, than I would like to add column using action like append field(text) but instead of text type I want my column to have collection type.

Please let me know if you have any suggestion</description>
      <pubDate>Tue, 14 May 2019 15:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46793#M2693</guid>
      <dc:creator>MateuszWojcik</dc:creator>
      <dc:date>2019-05-14T15:06:00Z</dc:date>
    </item>
    <item>
      <title>Hi mwojcik2,
This can beâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46794#M2694</link>
      <description>Hi mwojcik2,
This can be done with a simple calculation.
I have attached an image with anÂ&amp;nbsp;example.Â&amp;nbsp; I have a collection called colCustomer which is already populated with some basic info as shown but there is a field which is called colAccount which is a collection datatype that is blank.Â&amp;nbsp; I have a second collection called colTempAccount which is pre populated with some info.
A single calculation stage is all that is required to store colTempAccount  into the collection variable colAccount  inside colCustomer .
Hope that helps!
Kind regards,
Ben</description>
      <pubDate>Tue, 14 May 2019 16:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46794#M2694</guid>
      <dc:creator>BenKirimlidis</dc:creator>
      <dc:date>2019-05-14T16:55:00Z</dc:date>
    </item>
    <item>
      <title>sory image didnt save firstâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46795#M2695</link>
      <description>sory image didnt save first time</description>
      <pubDate>Tue, 14 May 2019 16:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46795#M2695</guid>
      <dc:creator>BenKirimlidis</dc:creator>
      <dc:date>2019-05-14T16:55:00Z</dc:date>
    </item>
    <item>
      <title>3rd times the charm.....?Â â€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46796#M2696</link>
      <description>3rd times the charm.....?Â&amp;nbsp; tried jpeg this time</description>
      <pubDate>Tue, 14 May 2019 16:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46796#M2696</guid>
      <dc:creator>BenKirimlidis</dc:creator>
      <dc:date>2019-05-14T16:56:00Z</dc:date>
    </item>
    <item>
      <title>Hi Ben,
Â 
Thank you for yourâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46797#M2697</link>
      <description>Hi Ben,
Â&amp;nbsp;
Thank you for your help.
Unfortunately it is not what I am looking for.Â&amp;nbsp; Your idea assumes that collection "colCustomer" already has a defined column with collection type. My process download collection from SharePoint. In this collection there are column with text and number types.Â&amp;nbsp; When I have it downloaded I want to add extra column with collection type.
I don't want to defined all column's type in process top avoid errors when there will be changes in SharePoint table.Â&amp;nbsp;
Â&amp;nbsp;
I have solve this problem as follow. I have created additional collection with already defined 1 column with collection type. After I download SharePoint Collection I use merge action to add both collection.
Â&amp;nbsp;
I hope to find solution of adding additional column with collection type to main collection.
Â&amp;nbsp;
Kind regards
Mateusz</description>
      <pubDate>Wed, 15 May 2019 17:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46797#M2697</guid>
      <dc:creator>MateuszWojcik</dc:creator>
      <dc:date>2019-05-15T17:14:00Z</dc:date>
    </item>
    <item>
      <title>This was written in C#, butâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46798#M2698</link>
      <description>This was written in C#, but it should do what you're looking for. Some of the types are internally defined and I wasn't able to get a differentiation between them. (Text/Password, DateTime/Time) &lt;BR /&gt;&lt;BR /&gt;Inputs: &lt;BR /&gt;Collection - Collection &lt;BR /&gt;colName - Text &lt;BR /&gt;colType - Text &lt;BR /&gt;&lt;BR /&gt;Outputs: &lt;BR /&gt;New Collection - Collection&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-csharp"&gt;DataColumn col &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;DataColumn&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;colType&lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Number"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt; 
	col&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;DataType &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; System&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;&lt;SPAN class="token string"&gt;"System.Int32"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt; 
&lt;SPAN class="token keyword"&gt;else&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;colType&lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Text"&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;||&lt;/SPAN&gt; colType&lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Password"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;
	col&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;DataType &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; System&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;&lt;SPAN class="token string"&gt;"System.String"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;else&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;colType&lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Collection"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt; 
	col&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;DataType &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;typeof&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;
&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt; 
&lt;SPAN class="token keyword"&gt;else&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;colType&lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Date"&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;||&lt;/SPAN&gt; colType&lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"DateTime"&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;||&lt;/SPAN&gt;colType&lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Time"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;
	col&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;DataType &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; System&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;&lt;SPAN class="token string"&gt;"System.DateTime"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt; 
&lt;SPAN class="token keyword"&gt;else&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;colType&lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Flag"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;
	col&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;DataType &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; System&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;&lt;SPAN class="token string"&gt;"System.Boolean"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt; 
&lt;SPAN class="token keyword"&gt;else&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;colType&lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"TimeSpan"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;
	col&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;DataType &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; System&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;&lt;SPAN class="token string"&gt;"System.TimeSpan"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;else&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;colType&lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Image"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;
	col&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;DataType &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;typeof&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Bitmap&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;else&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;colType&lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Binary"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;
	col&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;DataType &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; System&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;&lt;SPAN class="token string"&gt;"System.Byte[]"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt; 

col&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;ColumnName &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; colName&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; Collection&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;col&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;Â Â  Â  New_Collection &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; Collection&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;​&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 May 2019 22:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46798#M2698</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2019-05-15T22:12:00Z</dc:date>
    </item>
    <item>
      <title>Thank youÂ amibarrett.
I haveâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46799#M2699</link>
      <description>Thank youÂ&amp;nbsp;amibarrett.
I have solve my problem in the following way.
I create a collection "coll1" where 1 column "Shp_col" has defined type of collection. Coll1 is merge with collection obtained from SharePoint list "SHPcoll".
Next I loop through SHPColl and add with calculation stage "coll3" to column "Shp_col".
coll3 contains relevant data for specific row in SHPcoll.</description>
      <pubDate>Wed, 22 May 2019 17:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Append-Field-type-collection/m-p/46799#M2699</guid>
      <dc:creator>MateuszWojcik</dc:creator>
      <dc:date>2019-05-22T17:22:00Z</dc:date>
    </item>
  </channel>
</rss>

