<?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 value in Single Data Item in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Writing-Collection-value-in-Single-Data-Item/m-p/61549#M14831</link>
    <description>Something like this maybe?&lt;BR /&gt;&lt;CODE&gt;[Single Data Item] &amp;amp; NewLine() &amp;amp; [Coll1.Process] &amp;amp; ", " &amp;amp; [Coll1.Error]&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;Or maybe just convert the whole collection to a single JSON string using the JSON utility VBO.&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, 23 May 2022 15:28:00 GMT</pubDate>
    <dc:creator>John__Carter</dc:creator>
    <dc:date>2022-05-23T15:28:00Z</dc:date>
    <item>
      <title>Writing Collection value in Single Data Item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Writing-Collection-value-in-Single-Data-Item/m-p/61548#M14830</link>
      <description>&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&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;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my collection which had 2 columns and rows are dynamic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26723.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/26851i65EF8B989CFD107F/image-size/large?v=v2&amp;amp;px=999" role="button" title="26723.png" alt="26723.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;SPAN&gt;I need these data(dynamic) in single data item.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to achieve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Roshini Syed&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 23 May 2022 15:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Writing-Collection-value-in-Single-Data-Item/m-p/61548#M14830</guid>
      <dc:creator>RoshiniSyed</dc:creator>
      <dc:date>2022-05-23T15:14:00Z</dc:date>
    </item>
    <item>
      <title>RE: Writing Collection value in Single Data Item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Writing-Collection-value-in-Single-Data-Item/m-p/61549#M14831</link>
      <description>Something like this maybe?&lt;BR /&gt;&lt;CODE&gt;[Single Data Item] &amp;amp; NewLine() &amp;amp; [Coll1.Process] &amp;amp; ", " &amp;amp; [Coll1.Error]&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;Or maybe just convert the whole collection to a single JSON string using the JSON utility VBO.&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, 23 May 2022 15:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Writing-Collection-value-in-Single-Data-Item/m-p/61549#M14831</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2022-05-23T15:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Writing Collection value in Single Data Item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Writing-Collection-value-in-Single-Data-Item/m-p/61550#M14832</link>
      <description>Hi Roshini,&lt;BR /&gt;&lt;BR /&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;CODE&gt; [Results] = ""&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;Now, the condition is true you can use a calculation stage and set the value of 'Results' data item as &lt;CODE&gt;[Coll.Process] &amp;amp; " , " &amp;amp; [Coll.Status]&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;If the the condition is false you can use a calculation stage and set the value of 'Results' data item as &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;This logic will write the data in your 'Results' data item as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;Interactive Microsevice Co.. , Degraded
VizQl Server , Error​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;NOTE: All this logic must be included within a Loop stage over the 'Coll' collection.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&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:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Writing-Collection-value-in-Single-Data-Item/m-p/61550#M14832</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-05-23T15:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: Writing Collection value in Single Data Item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Writing-Collection-value-in-Single-Data-Item/m-p/61551#M14833</link>
      <description>It worked. Thank you for your detailed explanation.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Roshini Syed&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 24 May 2022 06:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Writing-Collection-value-in-Single-Data-Item/m-p/61551#M14833</guid>
      <dc:creator>RoshiniSyed</dc:creator>
      <dc:date>2022-05-24T06:32:00Z</dc:date>
    </item>
  </channel>
</rss>

