<?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 Thank you for your comment. I in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Obtaining-JSON-data-from-a-URL-using-HTTP-GET/m-p/70231#M22836</link>
    <description>Thank you for your comment. I managed to get the JSON data into a text data item. However when the JSON to collection action stage is run, the following error appears:
""Internal : Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems</description>
    <pubDate>Thu, 01 Dec 2016 19:04:00 GMT</pubDate>
    <dc:creator>ritesh_a_ramkhe</dc:creator>
    <dc:date>2016-12-01T19:04:00Z</dc:date>
    <item>
      <title>Obtaining JSON data from a URL using HTTP GET</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Obtaining-JSON-data-from-a-URL-using-HTTP-GET/m-p/70229#M22834</link>
      <description>I am trying to develop a VBO which will use a HTTP GET request to obtain JSON data from a URL and then be able to store the JSON data as a collection so the different object values can be used for automation.

Does anyone have any ideas as to how this can be done, or any examples which may help?</description>
      <pubDate>Thu, 01 Dec 2016 17:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Obtaining-JSON-data-from-a-URL-using-HTTP-GET/m-p/70229#M22834</guid>
      <dc:creator>ritesh_a_ramkhe</dc:creator>
      <dc:date>2016-12-01T17:12:00Z</dc:date>
    </item>
    <item>
      <title>A simple way to obtain JSON</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Obtaining-JSON-data-from-a-URL-using-HTTP-GET/m-p/70230#M22835</link>
      <description>A simple way to obtain JSON data from a URL:
--------------------------------------------------------------------------------------------
In: URL
Out: Result (JSON data)
Code stage VB.NET:
Dim webClient As New System.Net.WebClient
Result = webClient.DownloadString(URL)
--------------------------------------------------------------------------------------------
Alternatively, you can use HttpWebRequest class in VB.net / C# to perform requests. HttpWebRequest is detailed at: &lt;A href="http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx" target="test_blank"&gt;http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx&lt;/A&gt;
JSON to Collection: Import JSON business object from C:\Program Files\Blue Prism Limited\Blue Prism Automate\VBO.
Use Convert JSON to Collection or something action to translate the JSON data into a collection.</description>
      <pubDate>Thu, 01 Dec 2016 18:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Obtaining-JSON-data-from-a-URL-using-HTTP-GET/m-p/70230#M22835</guid>
      <dc:creator>shahariar_k_bhu</dc:creator>
      <dc:date>2016-12-01T18:22:00Z</dc:date>
    </item>
    <item>
      <title>Thank you for your comment. I</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Obtaining-JSON-data-from-a-URL-using-HTTP-GET/m-p/70231#M22836</link>
      <description>Thank you for your comment. I managed to get the JSON data into a text data item. However when the JSON to collection action stage is run, the following error appears:
""Internal : Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems</description>
      <pubDate>Thu, 01 Dec 2016 19:04:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Obtaining-JSON-data-from-a-URL-using-HTTP-GET/m-p/70231#M22836</guid>
      <dc:creator>ritesh_a_ramkhe</dc:creator>
      <dc:date>2016-12-01T19:04:00Z</dc:date>
    </item>
    <item>
      <title>Managed to sort the issue out</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Obtaining-JSON-data-from-a-URL-using-HTTP-GET/m-p/70232#M22837</link>
      <description>Managed to sort the issue out by including Newtonsoft.Json.dll in the Blue Prism directory. However the resultant collection stores the values I need to extract in arrays of objects. Is there a way to extract particular values from an array within a collection?</description>
      <pubDate>Thu, 01 Dec 2016 19:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Obtaining-JSON-data-from-a-URL-using-HTTP-GET/m-p/70232#M22837</guid>
      <dc:creator>ritesh_a_ramkhe</dc:creator>
      <dc:date>2016-12-01T19:38:00Z</dc:date>
    </item>
    <item>
      <title>JSON:Array in a collection is</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Obtaining-JSON-data-from-a-URL-using-HTTP-GET/m-p/70233#M22838</link>
      <description>JSON:Array in a collection is simply a collection, so you could loop through the main collection, and access the fields using their corresponding field name.
For example:
Loop over collection -&amp;gt; have a calculation stage where you have the expression: [Collection.JSON:Array.FIELDNAME] and store the result to a data text item.
Or you could handle that part using code blocks, set the JSON collection as input with some filter criterias, and a filtered collection as output.</description>
      <pubDate>Thu, 01 Dec 2016 19:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Obtaining-JSON-data-from-a-URL-using-HTTP-GET/m-p/70233#M22838</guid>
      <dc:creator>shahariar_k_bhu</dc:creator>
      <dc:date>2016-12-01T19:51:00Z</dc:date>
    </item>
    <item>
      <title>I tried it using the loop</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Obtaining-JSON-data-from-a-URL-using-HTTP-GET/m-p/70234#M22839</link>
      <description>I tried it using the loop method you described above and it works as intended. Thanks for the help!</description>
      <pubDate>Thu, 01 Dec 2016 22:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Obtaining-JSON-data-from-a-URL-using-HTTP-GET/m-p/70234#M22839</guid>
      <dc:creator>ritesh_a_ramkhe</dc:creator>
      <dc:date>2016-12-01T22:24:00Z</dc:date>
    </item>
  </channel>
</rss>

