<?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>BigQuery connection not retrieving rows from response</title><link>https://community.appian.com/discussions/f/integrations/22135/bigquery-connection-not-retrieving-rows-from-response</link><description>Hello people! 
 I am trying to find a way to connect data from a BigQuery table I have, I found a potential way to do it: By using its API. 
 I was able to connect correctly, using a service account , when I then create the integration and I test the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: BigQuery connection not retrieving rows from response</title><link>https://community.appian.com/thread/86710?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 21:21:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b979a9-f90f-4bc6-88c0-44585bd88977</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Nice, glad that worked!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BigQuery connection not retrieving rows from response</title><link>https://community.appian.com/thread/86708?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 19:37:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:02896c6f-e9c5-437d-8fa6-acdf908f49c2</guid><dc:creator>rodrigoe0001</dc:creator><description>&lt;p&gt;Awesome! I think I get it now, this worked and I can see the response and get through it, you rock man!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BigQuery connection not retrieving rows from response</title><link>https://community.appian.com/thread/86706?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 18:30:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5c23a92b-010a-48da-83a2-aad50550e4f7</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Ah is it possible there are other results prior to the &amp;quot;totalRows&amp;quot;? If you call the rule by itself (without the &amp;quot;.totalRows&amp;quot;), what do you see? You might need to try to index other items like &amp;quot;.result.body.totalRows&amp;quot; or something like that. Any item you see in the response can be indexed into using that dot notation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BigQuery connection not retrieving rows from response</title><link>https://community.appian.com/thread/86705?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 18:27:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f7d0d2b7-6693-4a44-af57-791ee4584197</guid><dc:creator>rodrigoe0001</dc:creator><description>&lt;p&gt;Great! I tried that and this seems to work, thanks Peter. However,&amp;nbsp; I get the test output as&amp;nbsp;&lt;/p&gt;
&lt;div class="FieldLayout---field_layout FieldLayout---inColumnArrayLayout"&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div class="SideBySideGroup---side_by_side SideBySideGroup---default_direction SideBySideGroup---top"&gt;
&lt;div class="SideBySideItem---flex_item SideBySideItem---default_direction SideBySideItem---sparse SideBySideItem---minimize"&gt;
&lt;div class="FieldLayout---field_layout FieldLayout---inSideBySideItem FieldLayout---inMinimizedSideBySideItem FieldLayout---inColumnArrayLayout"&gt;
&lt;div class="FieldLayout---accessibilityhidden"&gt;&lt;span class="FieldLayout---field_label" id="533ab9b81cf7188afb65c7d650a51526"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div class=""&gt;
&lt;p class="ParagraphText---richtext_paragraph ParagraphText---default_direction ParagraphText---align_start elements---global_p"&gt;&lt;strong class="StrongText---richtext_strong"&gt;Time &lt;/strong&gt;3,919 ms &lt;a class="LinkedItem---richtext_link elements---global_a" href="https://sszr.appian.community/suite/design/lMBkhfYMQ3WH4e_sSaXugtzcoUS8W25khhH1jz6W5_5qkmEpC9yYLiILaCiQ5ZzIQ_46_WWdkwBmrDqRb92QIPRoDj1rfoduDaRxi8XpV2aghL1uQ"&gt;(View Performance)&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="SideBySideItem---flex_item SideBySideItem---default_direction SideBySideItem---sparse appian-context-last-in-list"&gt;
&lt;div class="FieldLayout---field_layout FieldLayout---inSideBySideItem FieldLayout---inColumnArrayLayout"&gt;
&lt;div class="FieldLayout---accessibilityhidden"&gt;&lt;span class="FieldLayout---field_label" id="82712f09c5cbc742f8f6316ce28632ba"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div class=""&gt;
&lt;p class="ParagraphText---richtext_paragraph ParagraphText---default_direction ParagraphText---align_start elements---global_p"&gt;&lt;strong class="StrongText---richtext_strong"&gt;Type &lt;/strong&gt;Null&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="FieldLayout---field_layout FieldLayout---margin_below_none FieldLayout---inColumnArrayLayout"&gt;
&lt;div class="FieldLayout---accessibilityhidden"&gt;&lt;span class="FieldLayout---field_label" id="6b59559b6070873b4412920e546f89cc"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div class="SideBySideGroup---side_by_side SideBySideGroup---default_direction SideBySideGroup---bottom"&gt;
&lt;div class="SideBySideItem---flex_item SideBySideItem---default_direction SideBySideItem---minimize"&gt;
&lt;div class="FieldLayout---field_layout FieldLayout---inSideBySideItem FieldLayout---inMinimizedSideBySideItem FieldLayout---inColumnArrayLayout"&gt;
&lt;div class="FieldLayout---accessibilityhidden"&gt;&lt;span class="FieldLayout---field_label" id="911a8a56a7e279a400cf2f4f323aa5e1"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div class=""&gt;
&lt;p class="ParagraphText---richtext_paragraph ParagraphText---default_direction ParagraphText---align_start elements---global_p"&gt;&lt;strong class="StrongText---richtext_strong"&gt;Value &lt;/strong&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="SideBySideItem---flex_item SideBySideItem---default_direction SideBySideItem---minimize appian-context-last-in-list"&gt;
&lt;div class="FieldLayout---field_layout FieldLayout---inSideBySideItem FieldLayout---inMinimizedSideBySideItem FieldLayout---inColumnArrayLayout"&gt;
&lt;div class="FieldLayout---accessibilityhidden"&gt;&lt;span class="FieldLayout---field_label" id="2cc622374753b840b24614447e67d58d"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="FieldLayout---input_below"&gt;
&lt;div class="RadioSelect---choice_group RadioSelect---compact"&gt;
&lt;div class="RadioSelect---choice_pair"&gt;Formatted&lt;/div&gt;
&lt;div class="RadioSelect---choice_pair"&gt;Raw&lt;/div&gt;
&lt;div class="RadioSelect---choice_pair"&gt;Expression&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ContentLayout---content_layout ContentLayout---flush"&gt;
&lt;div class="SelectableTree---selectableTree SelectableTree---allow_text_highlighting appian-context-ux-mouse-focus"&gt;
&lt;ul class="SelectableTree---treeContainer SelectableTree---children"&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---last SelectableTreeNode---root SelectableTreeNode---allow_text_highlighting"&gt;&lt;i class="SelectableTreeNode---icon SelectableTreeNode---openCloseLink"&gt;&lt;/i&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;null&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Null)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So I guess this did not give me the rows, as I then tried to create the interface, and selected&amp;nbsp;read only grid and selected rule from data source, but it does not return any values there.&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BigQuery connection not retrieving rows from response</title><link>https://community.appian.com/thread/86704?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 18:15:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3a7f7259-b8e1-4c9f-a537-98f0999b0d78</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Oh I just suggested SAMPLE as an example - you&amp;#39;ll need to just use whatever the name of your integration was. It should also auto-complete when you type in rule! and begin to type.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BigQuery connection not retrieving rows from response</title><link>https://community.appian.com/thread/86703?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 18:14:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:beba2f0b-499b-4d65-b675-4163b2666dd4</guid><dc:creator>rodrigoe0001</dc:creator><description>&lt;p&gt;Got it, not sure if I&amp;#39;m doing something wrong, I went to my app&amp;gt;&amp;#39;objects&amp;#39;&amp;gt;&amp;#39;New&amp;#39;&amp;gt;&amp;#39;Expression Rule&amp;#39;&lt;/p&gt;
&lt;p&gt;this opened a new tab with the text editor there and I pasted&amp;nbsp;rule!SAMPLE_TGSU_bigquery().totalRows&lt;/p&gt;
&lt;p&gt;Then I did &amp;#39;Test rule&amp;#39; and on Test output, I got an error:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Expression evaluation error at function rule!SAMPLE_TGSU_bigquery: Invalid function rule!SAMPLE_TGSU_bigquery (not available as [rule])&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you have any insights?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BigQuery connection not retrieving rows from response</title><link>https://community.appian.com/thread/86701?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 18:07:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f4052b5-8078-41fa-9e7e-761bb3f2f0fa</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Yes that&amp;#39;s correct - once you create that expression rule, it should return the list of all the&amp;nbsp;data from the integration. So then it&amp;#39;s up to you how you want to use it - you could use a grid (see this tutorial:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/latest/Grid_Tutorial.html)"&gt;docs.appian.com/.../Grid_Tutorial.html)&lt;/a&gt; using the results of your rule.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BigQuery connection not retrieving rows from response</title><link>https://community.appian.com/thread/86700?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 17:58:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:457782e1-3d2f-462e-a0ef-540a9951a347</guid><dc:creator>rodrigoe0001</dc:creator><description>&lt;p&gt;Hello, yes what I want in the end, is to show the rows coming on the JSON response , as a table on Appian&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With the code you ageve me, I guess I need to create a new expression rule , and it may look like this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;rule!SAMPLE_TGSU_bigquery().totalRows&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;am I right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BigQuery connection not retrieving rows from response</title><link>https://community.appian.com/thread/86694?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 17:33:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:55e69e1f-587f-4b24-b188-d462eedd0c72</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;So are you trying to create a record type with this integrationas the source? Usually the best way to do that is to use dot notation to index into the rowsList varaiable. Usually, I see this done by creating a separate expression rule and then using the expression rule to format your results. You should be able to return the total rows data like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;rule!SAMPLE_YourIntegrationRuleName().totalRows&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>