<?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: Excel Graph API - Not Accepting JSON from Collection using JSON VBO in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/Excel-Graph-API-Not-Accepting-JSON-from-Collection-using-JSON/m-p/101698#M3290</link>
    <description>The "Collection to JSON" action is not going to do what you need as it returns a JSON array of objects in [{..}, {..}, {..}] whereas you need and array of arrays [[..], [..], [..]]. You could use the existing VB code in the "Utility - JSON" object as a starting point to build a new action or you could build something more basic just using BP loops and calculate stages, such as:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36797.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36812iF68D698C85DF4016/image-size/large?v=v2&amp;amp;px=999" role="button" title="36797.png" alt="36797.png" /&gt;&lt;/span&gt;&lt;BR /&gt;The expression for Append Row looks like this (assuming all fields are Text):&lt;BR /&gt;
&lt;PRE class="language-vb"&gt;&lt;CODE&gt;[JSON]&amp;amp;
"["&amp;amp;
""""&amp;amp;[Input.Field1]&amp;amp;""","&amp;amp;
""""&amp;amp;[Input.Field2]&amp;amp;""","&amp;amp;
""""&amp;amp;[Input.Field3]&amp;amp;""""&amp;amp;
"],"​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and the expression for Trim and Enclose looks like this:&lt;/P&gt;
&lt;PRE class="language-vb"&gt;&lt;CODE&gt;"["&amp;amp;Left([JSON], Len([JSON])-1)&amp;amp;"]"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The advantage of building your own code block is that it will be faster and generic (work with any collection) but the above is a quick fix that should get you up and running.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Aug 2021 14:57:40 GMT</pubDate>
    <dc:creator>RobWoodward</dc:creator>
    <dc:date>2021-08-23T14:57:40Z</dc:date>
    <item>
      <title>Excel Graph API - Not Accepting JSON from Collection using JSON VBO</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Excel-Graph-API-Not-Accepting-JSON-from-Collection-using-JSON/m-p/101697#M3289</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;So I've been starting to use the Graph API to update an Excel File.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So far seems to be working as expected except when you input the JSON package it just gives me an error.&lt;BR /&gt;&lt;BR /&gt;This is the JSON text:&amp;nbsp;&lt;BR /&gt;[{"Field1":"AB","Field2":"CD","Field3":"E1"}]&lt;BR /&gt;&lt;BR /&gt;The Error Code:&lt;BR /&gt;&lt;BR /&gt;Internal : Unexpected error Error during Web API HTTP Request&lt;BR /&gt;HTTP Status Code: 400&lt;BR /&gt;HTTP Response Content: {"error":{"code":"InvalidArgument","message":"The argument is invalid or missing or has an incorrect format.","innerError":{"code":"invalidArgument","message":"The argument is invalid or missing or has an incorrect&lt;BR /&gt;&lt;BR /&gt;If I just include:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ [&lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;], [&lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;] ] - from what Microsoft Recommends&amp;nbsp;- it works.&amp;nbsp;&lt;BR /&gt;&lt;A data-url="https://docs.microsoft.com/en-us/graph/api/table-post-rows?view=graph-rest-1.0&amp;amp;tabs=http" class="embedly-content" href="https://docs.microsoft.com/en-us/graph/api/table-post-rows?view=graph-rest-1.0" target="_blank" rel="noopener"&gt;Create TableRow - Microsoft Graph v1.0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;My test process looks like this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36802.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36813i8BC8D0D68C7E66CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="36802.png" alt="36802.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Collection:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36803.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36814i18656047F30B358B/image-size/large?v=v2&amp;amp;px=999" role="button" title="36803.png" alt="36803.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36804.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36815iB4331B1C01D2EDBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="36804.png" alt="36804.png" /&gt;&lt;/span&gt;&lt;BR /&gt;The Action I'm trying to use:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36805.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36821iD886032064780A70/image-size/large?v=v2&amp;amp;px=999" role="button" title="36805.png" alt="36805.png" /&gt;&lt;/span&gt;&lt;BR /&gt;How do I fix this, is there an alternative collection to JSON action?</description>
      <pubDate>Wed, 18 Aug 2021 16:53:33 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Excel-Graph-API-Not-Accepting-JSON-from-Collection-using-JSON/m-p/101697#M3289</guid>
      <dc:creator>Mat</dc:creator>
      <dc:date>2021-08-18T16:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Graph API - Not Accepting JSON from Collection using JSON VBO</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Excel-Graph-API-Not-Accepting-JSON-from-Collection-using-JSON/m-p/101698#M3290</link>
      <description>The "Collection to JSON" action is not going to do what you need as it returns a JSON array of objects in [{..}, {..}, {..}] whereas you need and array of arrays [[..], [..], [..]]. You could use the existing VB code in the "Utility - JSON" object as a starting point to build a new action or you could build something more basic just using BP loops and calculate stages, such as:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36797.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36812iF68D698C85DF4016/image-size/large?v=v2&amp;amp;px=999" role="button" title="36797.png" alt="36797.png" /&gt;&lt;/span&gt;&lt;BR /&gt;The expression for Append Row looks like this (assuming all fields are Text):&lt;BR /&gt;
&lt;PRE class="language-vb"&gt;&lt;CODE&gt;[JSON]&amp;amp;
"["&amp;amp;
""""&amp;amp;[Input.Field1]&amp;amp;""","&amp;amp;
""""&amp;amp;[Input.Field2]&amp;amp;""","&amp;amp;
""""&amp;amp;[Input.Field3]&amp;amp;""""&amp;amp;
"],"​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and the expression for Trim and Enclose looks like this:&lt;/P&gt;
&lt;PRE class="language-vb"&gt;&lt;CODE&gt;"["&amp;amp;Left([JSON], Len([JSON])-1)&amp;amp;"]"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The advantage of building your own code block is that it will be faster and generic (work with any collection) but the above is a quick fix that should get you up and running.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 14:57:40 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Excel-Graph-API-Not-Accepting-JSON-from-Collection-using-JSON/m-p/101698#M3290</guid>
      <dc:creator>RobWoodward</dc:creator>
      <dc:date>2021-08-23T14:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Graph API - Not Accepting JSON from Collection using JSON VBO</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Excel-Graph-API-Not-Accepting-JSON-from-Collection-using-JSON/m-p/101699#M3291</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2073"&gt;@RobWoodward&lt;/a&gt; , that's actually really helpful. &lt;BR /&gt;&lt;BR /&gt;I wouldn't know how to write custom code to do this, ​and JSON is pretty new to me.&amp;nbsp; I was trying to figure out a way to amend the JSON text file that gets created but felt like I was hitting a brick wall. It would have been super useful if BPC had built some actions to go with the API integrations that had been built to account for complications like this and make them easier to use.&lt;BR /&gt;&lt;BR /&gt;As for example with Excel you have to start a session and then end a session. Having said that some stuff is very straight forward, such as 'Get Manager' (Graph API - Users) stores a collection of manager info that you can just target in your process. I'm glad we've got them and rather have them than not - I just think BPC could have added a lot of value to these graph integrations.</description>
      <pubDate>Tue, 24 Aug 2021 09:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Excel-Graph-API-Not-Accepting-JSON-from-Collection-using-JSON/m-p/101699#M3291</guid>
      <dc:creator>Mat</dc:creator>
      <dc:date>2021-08-24T09:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Graph API - Not Accepting JSON from Collection using JSON VBO</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Excel-Graph-API-Not-Accepting-JSON-from-Collection-using-JSON/m-p/101700#M3292</link>
      <description>Hi Mat,&lt;BR /&gt;&lt;BR /&gt;Thanks for the feedback regarding your use of the Graph integration for Excel. Let me suggest that any enhancement or feature requests you might have be submitted to the Ideas page. That way they make their way back to the dev teams. You can submit and Idea with through the Digital Exchange (&lt;A href="https://digitalexchange.blueprism.com/site/global/ideas/index.gsp" target="_blank" rel="noopener"&gt;DX Ideas page&lt;/A&gt;) or here on the Community site (&lt;A href="https://community.blueprism.com/participate/ideation-home" target="_blank" rel="noopener"&gt;Community Ideas page&lt;/A&gt;).&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric</description>
      <pubDate>Wed, 25 Aug 2021 11:29:02 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Excel-Graph-API-Not-Accepting-JSON-from-Collection-using-JSON/m-p/101700#M3292</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-08-25T11:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Graph API - Not Accepting JSON from Collection using JSON VBO</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Excel-Graph-API-Not-Accepting-JSON-from-Collection-using-JSON/m-p/101701#M3293</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt; I'll submit them on the forum, as the DX Ideas page doesn't work. &lt;BR /&gt;&lt;BR /&gt;If I try login it reloads the page and the content refuses to connect. Even though I'm already logged in if I try submit an idea it tells me to login. &lt;span class="lia-inline-image-display-wrapper" image-alt="36801.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36811iB548B2238ABABDEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="36801.png" alt="36801.png" /&gt;&lt;/span&gt;​</description>
      <pubDate>Fri, 03 Sep 2021 16:12:53 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Excel-Graph-API-Not-Accepting-JSON-from-Collection-using-JSON/m-p/101701#M3293</guid>
      <dc:creator>Mat</dc:creator>
      <dc:date>2021-09-03T16:12:53Z</dc:date>
    </item>
  </channel>
</rss>

