<?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: How to retrive value from nested collection and store it in data item? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-retrive-value-from-nested-collection-and-store-it-in-data/m-p/62929#M15956</link>
    <description>Hi John,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I had tried to fix the json earlier but that didnt work .I used Json to Collection( Skipping array) action of Symphony Ventures - JSON Manipulation (Custom C#) object which I found on digital exchange which removed one level of nesting then I copied Json to Collection output to other empty collection using calculation stage which gave me the normal collection. Then used below code to remove dot from header which fixed the issue. Thank you&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For Each Array As DataColumn In Input_Collection.Columns&lt;BR /&gt;Array.ColumnName=Microsoft.Visualbasic.Replace(Array.ColumnName,".","_")&lt;BR /&gt;Next&lt;BR /&gt;Output_Collection = Input_Collection&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Neha Gote&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 14 Oct 2021 14:47:00 GMT</pubDate>
    <dc:creator>NehaGote</dc:creator>
    <dc:date>2021-10-14T14:47:00Z</dc:date>
    <item>
      <title>How to retrive value from nested collection and store it in data item?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-retrive-value-from-nested-collection-and-store-it-in-data/m-p/62927#M15954</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to retrive the value from nested collection and store it in data item.&lt;BR /&gt;I am using calculation stage whose expression is [Json to collection.result.JSON:Array.change_request.start_date] and storing it in dataitem. But after running calculation stage &amp;nbsp;blue prism is giving out the following error &lt;BR /&gt;Internal : Failed to evaluate expression '[Json to collection.result.JSON:Array.change_request.start_date]' - Referenced field is not a collection, but sub-field notation was used&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30762.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30891i2EA6E6F10741119F/image-size/large?v=v2&amp;amp;px=999" role="button" title="30762.png" alt="30762.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30763.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30892i06B7EF6B2EF3757A/image-size/large?v=v2&amp;amp;px=999" role="button" title="30763.png" alt="30763.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;SPAN&gt;Blue Prism's dot notation only has the capability to refer to collection fields and column name has dot in it. Hence I have tried to remove dot from header using Remove dot from header action from utility collection manipulation but that didn't worked .Also tried rename collection field, rename field action but that also didnt work.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Can someone help me with this?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Neha Gote&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Oct 2021 12:33:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-retrive-value-from-nested-collection-and-store-it-in-data/m-p/62927#M15954</guid>
      <dc:creator>NehaGote</dc:creator>
      <dc:date>2021-10-13T12:33:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to retrive value from nested collection and store it in data item?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-retrive-value-from-nested-collection-and-store-it-in-data/m-p/62928#M15955</link>
      <description>Hi Neha - so you're saying that the sub-collection '&lt;SPAN&gt;JSON:Array' has a field with the name 'change_request.start_date'? So the structure is like this:&lt;/SPAN&gt;&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Json to collection&lt;/SPAN&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Result&lt;/SPAN&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;JSON:Array&lt;/SPAN&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;change_request.start_date&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
But due to the dot in the field name, BP thinks you mean this, where 'change_request' is a collection?&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Json to collection&lt;/SPAN&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Result&lt;/SPAN&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;JSON:Array&lt;/SPAN&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;change_request&lt;/SPAN&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;start_date&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
Would it be possible to modify the JSON before converting it to a collection, ie remove the problematic dot?&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>Thu, 14 Oct 2021 09:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-retrive-value-from-nested-collection-and-store-it-in-data/m-p/62928#M15955</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2021-10-14T09:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to retrive value from nested collection and store it in data item?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-retrive-value-from-nested-collection-and-store-it-in-data/m-p/62929#M15956</link>
      <description>Hi John,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I had tried to fix the json earlier but that didnt work .I used Json to Collection( Skipping array) action of Symphony Ventures - JSON Manipulation (Custom C#) object which I found on digital exchange which removed one level of nesting then I copied Json to Collection output to other empty collection using calculation stage which gave me the normal collection. Then used below code to remove dot from header which fixed the issue. Thank you&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For Each Array As DataColumn In Input_Collection.Columns&lt;BR /&gt;Array.ColumnName=Microsoft.Visualbasic.Replace(Array.ColumnName,".","_")&lt;BR /&gt;Next&lt;BR /&gt;Output_Collection = Input_Collection&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Neha Gote&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2021 14:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-retrive-value-from-nested-collection-and-store-it-in-data/m-p/62929#M15956</guid>
      <dc:creator>NehaGote</dc:creator>
      <dc:date>2021-10-14T14:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to retrive value from nested collection and store it in data item?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-retrive-value-from-nested-collection-and-store-it-in-data/m-p/62930#M15957</link>
      <description>Maybe try editing the JSON text before converting to collection. Use the Replace function in a Calc stage to change the dot to something else. The pass the new JSON string into the conversion Action.&lt;BR /&gt;&lt;BR /&gt;If it's possible to paste an example of the JSON here, it might help us see your problem.&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>Thu, 14 Oct 2021 17:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-retrive-value-from-nested-collection-and-store-it-in-data/m-p/62930#M15957</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2021-10-14T17:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to retrive value from nested collection and store it in data item?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-retrive-value-from-nested-collection-and-store-it-in-data/m-p/62931#M15958</link>
      <description>Hi John yup I tried replace function in calculation stage it replaced all the dots in Json file. Thank you:)&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Neha Gote&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Oct 2021 11:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-retrive-value-from-nested-collection-and-store-it-in-data/m-p/62931#M15958</guid>
      <dc:creator>NehaGote</dc:creator>
      <dc:date>2021-10-22T11:35:00Z</dc:date>
    </item>
  </channel>
</rss>

