<?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 duplicating a collection and changing its name dynamically in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/duplicating-a-collection-and-changing-its-name-dynamically/m-p/70048#M22653</link>
    <description>Hi all ! I have an &lt;EM&gt;Agent Details&lt;/EM&gt; collection, I'm running a loop on a &lt;EM&gt;Countries&lt;/EM&gt; collection, the aim is create four new copies of the collection with the country respective names, so by the end of the process I need to have four collections: '&lt;EM&gt;Agent Details-USA&lt;/EM&gt;', '&lt;EM&gt;Agent Details-Germany&lt;/EM&gt;', '&lt;EM&gt;Agent Details-France&lt;/EM&gt;', '&lt;EM&gt;Agent Details-Spain&lt;/EM&gt;'. I tried adding various different collection manipulation objects but to no avail. Many thanks&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14520.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/14682i6DBF90F078D9A02C/image-size/large?v=v2&amp;amp;px=999" role="button" title="14520.png" alt="14520.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Aviad Ben Zaquen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 25 Nov 2021 17:03:00 GMT</pubDate>
    <dc:creator>AviadBen_Zaquen</dc:creator>
    <dc:date>2021-11-25T17:03:00Z</dc:date>
    <item>
      <title>duplicating a collection and changing its name dynamically</title>
      <link>https://community.blueprism.com/t5/Product-Forum/duplicating-a-collection-and-changing-its-name-dynamically/m-p/70048#M22653</link>
      <description>Hi all ! I have an &lt;EM&gt;Agent Details&lt;/EM&gt; collection, I'm running a loop on a &lt;EM&gt;Countries&lt;/EM&gt; collection, the aim is create four new copies of the collection with the country respective names, so by the end of the process I need to have four collections: '&lt;EM&gt;Agent Details-USA&lt;/EM&gt;', '&lt;EM&gt;Agent Details-Germany&lt;/EM&gt;', '&lt;EM&gt;Agent Details-France&lt;/EM&gt;', '&lt;EM&gt;Agent Details-Spain&lt;/EM&gt;'. I tried adding various different collection manipulation objects but to no avail. Many thanks&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14520.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/14682i6DBF90F078D9A02C/image-size/large?v=v2&amp;amp;px=999" role="button" title="14520.png" alt="14520.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Aviad Ben Zaquen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Nov 2021 17:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/duplicating-a-collection-and-changing-its-name-dynamically/m-p/70048#M22653</guid>
      <dc:creator>AviadBen_Zaquen</dc:creator>
      <dc:date>2021-11-25T17:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: duplicating a collection and changing its name dynamically</title>
      <link>https://community.blueprism.com/t5/Product-Forum/duplicating-a-collection-and-changing-its-name-dynamically/m-p/70049#M22654</link>
      <description>Hi Aviad,&lt;BR /&gt;&lt;BR /&gt;If am correctly understanding you are having Agent Details collection where details for each countries are available and you also must be having a column in that collection to identify the correct countries as well. You want to loop over Country collection and on the basis of the current country field you want to dynamically create different collections. &lt;BR /&gt;&lt;BR /&gt;Here, there are firstly few things to note. You can't dynamically create a Collection stage during runtime. What I mean if it is always fixed that there are going to be always 'X' countries, let say for example 3 countries you can create three blank collections with the same name. But I think that is not fixed in your case. If that is the case, I can suggest you two ways.&lt;BR /&gt;&lt;BR /&gt;First Way:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: Keep the below steps within the Loop stages of the Country collection.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;- Loop over country collection and get the current country field.&lt;BR /&gt;- Use a 'Filter Collection' action and write the query to get the rows from Agent Details with respect to the current country field and store that result in a temporary collection stage.&lt;BR /&gt;- You can have a collection called as 'Final Collection' let say with two fields, namely, 'Country' of Text type and 'Collection Data' of Collection type. Just add a row to that collection using 'Add Row' action and then using a Calculation stage set up the current country for the loop over country collection as the value of the Final Collection.Country and the temp collection as the value of Final Collection.Collection Data&lt;BR /&gt;&lt;BR /&gt;This way you will end up with one collection having one column indicating the country and the other one indicating a nested collection with agent details for that country.&lt;BR /&gt;&lt;BR /&gt;Second Way:&lt;BR /&gt;&lt;BR /&gt;- Loop over country collection and get the current country field.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: Keep the below steps within the Loop stages of the Country collection.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;- Use a 'Filter Collection' action and write the query to get the rows from Agent Details with respect to the current country field and store that result in a temporary collection stage.&lt;BR /&gt;- Create a work queue to store the country wise details and you can keep the key as the 'Country'&amp;nbsp; column name of your temporary collection. Now you can simply use the 'Add to Queue' action and add the temporary collection to the queue&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This way you will end up with a work queue having key name indicating the country and the agent details for that country can be retrieved easily using 'Get Next Item' from the work queue later in your process.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know if that helps.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Automation Consultant&lt;BR /&gt;Blueprism 6x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Nov 2021 05:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/duplicating-a-collection-and-changing-its-name-dynamically/m-p/70049#M22654</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2021-11-26T05:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: duplicating a collection and changing its name dynamically</title>
      <link>https://community.blueprism.com/t5/Product-Forum/duplicating-a-collection-and-changing-its-name-dynamically/m-p/70050#M22655</link>
      <description>How about a nested collection with a text field called Country and a collection field called Agents? Eg&lt;BR /&gt;&lt;BR /&gt;USA&lt;BR /&gt;&amp;nbsp; &amp;nbsp;- Donald&lt;BR /&gt;&amp;nbsp; &amp;nbsp;- Joe&lt;BR /&gt;Germany&lt;BR /&gt;&amp;nbsp; &amp;nbsp;- Angela&lt;BR /&gt;&amp;nbsp; &amp;nbsp;- Olaf&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>Mon, 29 Nov 2021 11:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/duplicating-a-collection-and-changing-its-name-dynamically/m-p/70050#M22655</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2021-11-29T11:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: duplicating a collection and changing its name dynamically</title>
      <link>https://community.blueprism.com/t5/Product-Forum/duplicating-a-collection-and-changing-its-name-dynamically/m-p/70051#M22656</link>
      <description>Hi Aviad&lt;BR /&gt;&lt;BR /&gt;If are looking for a code stage that will either create a collection or rename a collection I dont think there is a way to do this as you need to have a defined collection to output to with a name preset. You may be best to try &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1843"&gt;@devneetmohanty07&lt;/a&gt; and &lt;A class="user-content-mention" data-sign="@" data-contactkey="bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-tag-text="@John Carter" href="https://community.blueprism.com/network/profile?UserKey=bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-itemmentionkey="78e7aa2e-1ad9-4049-9f04-e593fe7bd68a"&gt;@John Carter&lt;/A&gt; suggestions as these should be good alternatives.&lt;BR /&gt;&lt;BR /&gt;​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;Everis Consultancy&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Nov 2021 15:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/duplicating-a-collection-and-changing-its-name-dynamically/m-p/70051#M22656</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2021-11-29T15:19:00Z</dc:date>
    </item>
  </channel>
</rss>

