<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Google Vision Data in an Editable Grid</title><link>https://community.appian.com/discussions/f/integrations/14730/google-vision-data-in-an-editable-grid</link><description>I am trying to pass in the Label Annotations from a Google Vision connected system into an editable grid. When I use the attached code, fv!item.description and fv!item.score returns the data as a single list of string as opposed to the 10 independent</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Google Vision Data in an Editable Grid</title><link>https://community.appian.com/thread/66042?ContentTypeID=1</link><pubDate>Mon, 22 Apr 2019 21:36:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:15c39ae4-8285-42aa-918b-16516443bbd2</guid><dc:creator>Kenneth Chen</dc:creator><description>&lt;p&gt;It&amp;#39;s interesting to me that it&amp;#39;s recognized as a dictionary but the usual functions are failing. Could you potentially try splitting the output inside the forEach, and then taking the index at that point?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;so instead of fv!item.description its split(fv!item.description, &amp;quot;, &amp;quot;)[fv!index]&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Google Vision Data in an Editable Grid</title><link>https://community.appian.com/thread/66035?ContentTypeID=1</link><pubDate>Mon, 22 Apr 2019 13:50:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:001d9f32-4355-4e43-81c2-c342c92a890d</guid><dc:creator>sriranjanir</dc:creator><description>&lt;p&gt;Hi Justin,&lt;/p&gt;
&lt;p&gt;Before sending the local!gvLabels in fn!foreach loop, Could you try casting the local variable to CDT type and loop?&lt;/p&gt;
&lt;p&gt;cast(&lt;br /&gt; typeof(&lt;br /&gt; type!CDT&lt;br /&gt; ),&lt;br /&gt; local!gvLabels&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Google Vision Data in an Editable Grid</title><link>https://community.appian.com/thread/66013?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2019 19:53:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5c607988-60fc-4f5a-9f25-630e35cb59b1</guid><dc:creator>justinp821</dc:creator><description>&lt;p&gt;That&amp;#39;s most likely the issue. It&amp;#39;s returning a list of variant.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Google Vision Data in an Editable Grid</title><link>https://community.appian.com/thread/66012?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2019 19:52:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9eb7ffee-7182-4143-8057-5f4f277bdfc7</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;what happens when you&amp;nbsp;do fn!typename(fn!typeof(&lt;span&gt;local!gvLabels&lt;/span&gt;))&amp;nbsp; ?&lt;/p&gt;
&lt;p&gt;if that comes back as &amp;quot;Text&amp;quot;, that could part of your problem - did you make a CDT to load these into?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Google Vision Data in an Editable Grid</title><link>https://community.appian.com/thread/66005?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2019 19:30:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:18c950b5-2b74-4dfb-bce1-d954e771c0e7</guid><dc:creator>justinp821</dc:creator><description>&lt;p&gt;Doesn&amp;#39;t seem to do anything. Tried fv!index as well, which successfully returns the first value from the list of values making me even more confused. Apparently it understands that this is a dictionary but fails to index out the list correctly when in a!forEach.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Google Vision Data in an Editable Grid</title><link>https://community.appian.com/thread/66004?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2019 19:29:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ee3349c-a0bf-4bc2-a8f7-a198ee44e317</guid><dc:creator>justinp821</dc:creator><description>&lt;p&gt;&lt;span&gt;[mid:/m/02q2kc3,description:Vehicle door,score:0.8949996,topicality:0.8949996]; [mid:/m/07yv9,description:Vehicle,score:0.7891846,topicality:0.7891846]; [mid:/m/01lrnl,description:Windshield,score:0.7330366,topicality:0.7330366]; [mid:/m/0h8ls87,description:Automotive exterior,score:0.7311965,topicality:0.7311965]; [mid:/m/02mnkq,description:Bumper,score:0.7284476,topicality:0.7284476]; [mid:/m/039jq,description:Glass,score:0.7177184,topicality:0.7177184]; [mid:/m/0k4j,description:Car,score:0.6750773,topicality:0.6750773]; [mid:/m/0h8lhq_,description:Automotive window part,score:0.6319218,topicality:0.6319218]; [mid:/m/02df64,description:Hood,score:0.5599056,topicality:0.5599056]; [mid:/m/02417f,description:Windscreen wiper,score:0.5486392,topicality:0.5486392]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Output in a paragraph field.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Google Vision Data in an Editable Grid</title><link>https://community.appian.com/thread/66002?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2019 19:24:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4645ca6-8001-4db6-9e40-a401d0cbab27</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;try:&lt;/p&gt;
&lt;p&gt;local!gvLabels.description[fv!item]&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Google Vision Data in an Editable Grid</title><link>https://community.appian.com/thread/66000?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2019 19:00:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68e239f2-d681-40e4-b6ae-c6f61a86c3fc</guid><dc:creator>Kenneth Chen</dc:creator><description>&lt;p&gt;Are you able to provide a sample of what the structure of local!gvLabels looks like?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>