<?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: writing collection values in one dataitem in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/writing-collection-values-in-one-dataitem/m-p/74263#M26868</link>
    <description>&lt;SPAN&gt;Hi Roshini,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can do it this way, lets say the data item where you need to write the data is called as 'Results'&amp;nbsp; and the collection name from where the data needs to be written is called 'Coll' so you can use a decision stage first and check if 'Results' data item is blank or not by using the conditional expression as:&lt;/SPAN&gt;&lt;CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[Results] = ""&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;Now, the condition is true you can use a calculation stage and set the value of 'Results' data item as&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;[Coll.Process] &amp;amp; " , " &amp;amp; [Coll.Status]&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the the condition is false you can use a calculation stage and set the value of 'Results' data item as&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;[Results] &amp;amp; NewLine() &amp;amp; [Coll.Process] &amp;amp; " , " &amp;amp; [Coll.Status]&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This logic will write the data in your 'Results' data item as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-markup" tabindex="0"&gt;&lt;CODE&gt;Interactive Microsevice Co.. , Degraded
VizQl Server , Error​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;Wonderbotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x 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;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 23 May 2022 15:33:00 GMT</pubDate>
    <dc:creator>devneetmohanty07</dc:creator>
    <dc:date>2022-05-23T15:33:00Z</dc:date>
    <item>
      <title>writing collection values in one dataitem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/writing-collection-values-in-one-dataitem/m-p/74262#M26867</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I need to write the collection values in one data Item. I can write 1st record however after I write the second record in it, it overwrites the 1st one.&lt;BR /&gt;&lt;BR /&gt;This is my collection which had 2 columns and rows are dynamic.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15277.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15438i63161ABA2A8009B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="15277.png" alt="15277.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I need these data in single data item.&lt;BR /&gt;&lt;BR /&gt;Is there any way to achieve this?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Roshini Syed&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 23 May 2022 15:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/writing-collection-values-in-one-dataitem/m-p/74262#M26867</guid>
      <dc:creator>RoshiniSyed</dc:creator>
      <dc:date>2022-05-23T15:11:00Z</dc:date>
    </item>
    <item>
      <title>RE: writing collection values in one dataitem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/writing-collection-values-in-one-dataitem/m-p/74263#M26868</link>
      <description>&lt;SPAN&gt;Hi Roshini,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can do it this way, lets say the data item where you need to write the data is called as 'Results'&amp;nbsp; and the collection name from where the data needs to be written is called 'Coll' so you can use a decision stage first and check if 'Results' data item is blank or not by using the conditional expression as:&lt;/SPAN&gt;&lt;CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[Results] = ""&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;Now, the condition is true you can use a calculation stage and set the value of 'Results' data item as&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;[Coll.Process] &amp;amp; " , " &amp;amp; [Coll.Status]&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the the condition is false you can use a calculation stage and set the value of 'Results' data item as&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;[Results] &amp;amp; NewLine() &amp;amp; [Coll.Process] &amp;amp; " , " &amp;amp; [Coll.Status]&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This logic will write the data in your 'Results' data item as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-markup" tabindex="0"&gt;&lt;CODE&gt;Interactive Microsevice Co.. , Degraded
VizQl Server , Error​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;Wonderbotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x 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;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 23 May 2022 15:33:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/writing-collection-values-in-one-dataitem/m-p/74263#M26868</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-05-23T15:33:00Z</dc:date>
    </item>
    <item>
      <title>RE: writing collection values in one dataitem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/writing-collection-values-in-one-dataitem/m-p/74264#M26869</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="0e0590b7-6e9d-42ba-ab98-5ece34748e4d" data-tag-text="@Roshini Syed" href="https://community.blueprism.com/network/profile?UserKey=0e0590b7-6e9d-42ba-ab98-5ece34748e4d" data-itemmentionkey="a2135486-cb48-41d8-bf8c-bcb2a0999d8c"&gt;@Roshini Syed&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Another way is use ​the action "Get Collection as CSV" from the Utility - Strings VBO. This gives you a complete data item with all the lines. Then you can use the "Split Lines" action from the "Utility - Strings" VBO to get a collection with all the lines.&lt;BR /&gt;&lt;BR /&gt;Then you can make a loop with the final collection to get the value and overwrite the Data Item.&lt;BR /&gt;&lt;BR /&gt;With this solution, if you add any column to the first Collection, it will automatically be added to the final concatenated line without having to touch anything.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps you!&lt;BR /&gt;&lt;BR /&gt;See you in the Community, bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 23 May 2022 16:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/writing-collection-values-in-one-dataitem/m-p/74264#M26869</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-05-23T16:00:00Z</dc:date>
    </item>
  </channel>
</rss>

