<?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: Extracting from a nested collection generated from API call, JSON in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Extracting-from-a-nested-collection-generated-from-API-call-JSON/m-p/116285#M52143</link>
    <description>&lt;P&gt;You are looping over the Tickets collection which is just one row. Try pulling out Tickets.results into its own collection using a Calculate stage. That should give you a collection with the 17 rows you can loop over.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2024 16:12:33 GMT</pubDate>
    <dc:creator>murisf</dc:creator>
    <dc:date>2024-10-15T16:12:33Z</dc:date>
    <item>
      <title>Extracting from a nested collection generated from API call, JSON</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Extracting-from-a-nested-collection-generated-from-API-call-JSON/m-p/116283#M52141</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I'm trying to work with Freshdesk, a procurement solution, and they have CAPCHA at their sign on stage. So I have used an API to call all open tickets in my group resulting in the response content in JSON format. I have then used the Utility - JSON object to put it in to a collection.&lt;/P&gt;&lt;P&gt;(The Freshdesk Developer documentation won't support me adding in the subject as a parameter to the API call)&lt;/P&gt;&lt;P&gt;There seems to be 3 layers of collection to get to the actual data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FranWoodcock_0-1729002641236.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39589iB35155FE97A48A97/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="FranWoodcock_0-1729002641236.png" alt="FranWoodcock_0-1729002641236.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And now I'm having trouble extracting the rows in to a new collection so I can filter it. Advice has been use a calculation and loop which I've built but it only picks up one row and exits the loop. Other advice has been to use some custom code in the response but I don't have the expertise to write this, or get chatgpt to write it...)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FranWoodcock_1-1729002761898.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39590iE03064C13093034F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="FranWoodcock_1-1729002761898.png" alt="FranWoodcock_1-1729002761898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to be able to filter by subject that starts with RFC to get the relevant tickets for the process and add them tot he queue, but I think I need to get it into a format that can be filtered first?&lt;/P&gt;&lt;P&gt;Current BP version = 6.10.5&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Fran&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 14:55:06 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Extracting-from-a-nested-collection-generated-from-API-call-JSON/m-p/116283#M52141</guid>
      <dc:creator>Fran.Woodcock</dc:creator>
      <dc:date>2024-10-15T14:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting from a nested collection generated from API call, JSON</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Extracting-from-a-nested-collection-generated-from-API-call-JSON/m-p/116285#M52143</link>
      <description>&lt;P&gt;You are looping over the Tickets collection which is just one row. Try pulling out Tickets.results into its own collection using a Calculate stage. That should give you a collection with the 17 rows you can loop over.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 16:12:33 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Extracting-from-a-nested-collection-generated-from-API-call-JSON/m-p/116285#M52143</guid>
      <dc:creator>murisf</dc:creator>
      <dc:date>2024-10-15T16:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting from a nested collection generated from API call, JSON</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Extracting-from-a-nested-collection-generated-from-API-call-JSON/m-p/116293#M52144</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/7993"&gt;@Fran.Woodcock&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can try, JSON Utility, where there is an action to skip JArray as well. Hope that helps.&lt;/P&gt;&lt;P&gt;Similar issue, pls checkout this thread(&lt;A href="https://community.blueprism.com/t5/Product-Forum/Response-Content-to-Collection/m-p/113326#M50728" target="_blank"&gt;Answered: Re: Response Content to Collection - SS&amp;amp;C Blue Prism Community&lt;/A&gt;). it may help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 05:18:19 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Extracting-from-a-nested-collection-generated-from-API-call-JSON/m-p/116293#M52144</guid>
      <dc:creator>Nandhakumar</dc:creator>
      <dc:date>2024-10-16T05:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting from a nested collection generated from API call, JSON</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Extracting-from-a-nested-collection-generated-from-API-call-JSON/m-p/116294#M52145</link>
      <description>&lt;P&gt;Take the inner collection to a new collection and then on top of it you can filter. Use loop on the main collection.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 05:57:43 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Extracting-from-a-nested-collection-generated-from-API-call-JSON/m-p/116294#M52145</guid>
      <dc:creator>Tejaskumar_Darji</dc:creator>
      <dc:date>2024-10-16T05:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting from a nested collection generated from API call, JSON</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Extracting-from-a-nested-collection-generated-from-API-call-JSON/m-p/116681#M52243</link>
      <description>&lt;P&gt;I ended up having a KS session and we built a 3 loop solution. I'd never have worked it out myself.. not experienced enough! But I was on the right track, thanks all for your suggestions&lt;/P&gt;&lt;P&gt;Fran&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 12:56:54 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Extracting-from-a-nested-collection-generated-from-API-call-JSON/m-p/116681#M52243</guid>
      <dc:creator>Fran.Woodcock</dc:creator>
      <dc:date>2024-10-31T12:56:54Z</dc:date>
    </item>
  </channel>
</rss>

