<?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: Web API Service with JSON Path parsing in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Web-API-Service-with-JSON-Path-parsing/m-p/102365#M49122</link>
    <description>Hi Mateusz,&lt;BR /&gt;&lt;BR /&gt;Based on the issue description, the error received, and your stated requirements in this scenario, we would suggest to &lt;A href="https://portal.blueprism.com/customer-support/how-can-i-get-help-customer-support" target="_blank" rel="noopener"&gt;open a Support ticket with us&lt;/A&gt; so we can investigate this further and provide our recommendations after reviewing the relevant components of this implementation. Please be sure to include the &lt;A href="https://portal.blueprism.com/what-information-provide-when-logging-new-support-ticket" target="_blank" rel="noopener"&gt;required info for new tickets&lt;/A&gt; so we can be best-placed to assist.</description>
    <pubDate>Fri, 09 Jul 2021 14:19:13 GMT</pubDate>
    <dc:creator>steven.boggs</dc:creator>
    <dc:date>2021-07-09T14:19:13Z</dc:date>
    <item>
      <title>Web API Service with JSON Path parsing</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Web-API-Service-with-JSON-Path-parsing/m-p/102364#M49121</link>
      <description>&lt;SPAN&gt;Hello Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm struggling recently with an error generated by Web Service action that has following Json Path applied as output parameter:&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;$..issues&lt;/STRONG&gt;&lt;LI&gt;&lt;STRONG&gt;.key&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The error thrown at the process layer is:&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ERROR: Internal : Unexpected error Path returned multiple tokens.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that I indeed want to receive multiple tokens as an output, however, I have no idea how to put this in a collection or text variable...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will be grateful for any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Mateusz&lt;BR /&gt;&lt;BR /&gt;Edit:&lt;BR /&gt;&lt;BR /&gt;I found in documentation (v6.10 User Guide - Web APIs) the following sentence:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P&gt;&lt;EM&gt;If the JSONPath defined for the output parameter does not find a match in an HTTP response, the output parameter will return an empty data item/collection. &lt;STRONG&gt;If the JSONPath defined for the output parameter finds multiple possible matches in an HTTP response, an exception will be thrown in the process.&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;But at the same time just right under it there is a table with json path examples that returns multiple values. I'm lost now.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37033.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37045iE91DE4D2E7626895/image-size/large?v=v2&amp;amp;px=999" role="button" title="37033.png" alt="37033.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;/LI&gt;</description>
      <pubDate>Thu, 08 Jul 2021 08:16:45 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Web-API-Service-with-JSON-Path-parsing/m-p/102364#M49121</guid>
      <dc:creator>MateuszBartczak</dc:creator>
      <dc:date>2021-07-08T08:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Web API Service with JSON Path parsing</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Web-API-Service-with-JSON-Path-parsing/m-p/102365#M49122</link>
      <description>Hi Mateusz,&lt;BR /&gt;&lt;BR /&gt;Based on the issue description, the error received, and your stated requirements in this scenario, we would suggest to &lt;A href="https://portal.blueprism.com/customer-support/how-can-i-get-help-customer-support" target="_blank" rel="noopener"&gt;open a Support ticket with us&lt;/A&gt; so we can investigate this further and provide our recommendations after reviewing the relevant components of this implementation. Please be sure to include the &lt;A href="https://portal.blueprism.com/what-information-provide-when-logging-new-support-ticket" target="_blank" rel="noopener"&gt;required info for new tickets&lt;/A&gt; so we can be best-placed to assist.</description>
      <pubDate>Fri, 09 Jul 2021 14:19:13 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Web-API-Service-with-JSON-Path-parsing/m-p/102365#M49122</guid>
      <dc:creator>steven.boggs</dc:creator>
      <dc:date>2021-07-09T14:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Web API Service with JSON Path parsing</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Web-API-Service-with-JSON-Path-parsing/m-p/102366#M49123</link>
      <description>Hi Mateusz,&lt;BR /&gt;&lt;BR /&gt;Can you post an example of the JSON content you're trying​ to parse?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric</description>
      <pubDate>Fri, 09 Jul 2021 14:33:29 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Web-API-Service-with-JSON-Path-parsing/m-p/102366#M49123</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-07-09T14:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Web API Service with JSON Path parsing</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Web-API-Service-with-JSON-Path-parsing/m-p/102367#M49124</link>
      <description>Hi Steve, Hi Eric,&lt;BR /&gt;&lt;BR /&gt;Thanks for responding.&lt;BR /&gt;&lt;BR /&gt;Here is the small part of the JSON that I'm trying to parse:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;[
  {
    "expand": "schema,names",
    "startAt": 0,
    "maxResults": 50,
    "total": 2,
    "issues": [
      {
        "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
        "id": "600133",
        "self": "https://",
        "key": "ROBPRA-6"
      },
      
      {
        "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
        "id": "600121",
        "self": "https:",
        "key": "ROBPRA-5"
      }
        
      ]
  }
  ]​&lt;/CODE&gt;&lt;/PRE&gt;
By using &lt;STRONG&gt;$..issues&lt;/STRONG&gt;&lt;LI&gt;&lt;STRONG&gt;.key &lt;/STRONG&gt;syntax, I should receive something like:&lt;BR /&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;[
  "ROBPRA-6",
  "ROBPRA-5"
]​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But Blue Prism unfortunately can't return it as a string or put it in a collection. I assume that would be possible with some custom code but I have countless issues with newtonsoft.Json.dll...&lt;/P&gt;&lt;/LI&gt;</description>
      <pubDate>Fri, 09 Jul 2021 15:30:55 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Web-API-Service-with-JSON-Path-parsing/m-p/102367#M49124</guid>
      <dc:creator>MateuszBartczak</dc:creator>
      <dc:date>2021-07-09T15:30:55Z</dc:date>
    </item>
  </channel>
</rss>

