<?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>How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/discussions/f/data/22210/how-to-get-a-json-response-i-also-got-converted-to-map-to-be-available-as-data-source-to-create-records</link><description>Hi everyone! 
 I am working with BigQuery, and I have been able to get the response from a database I have there, the data comes in JSON format, so with a help of an Appian expert, we were able to create a dictionary to make it show from this: 
 
 to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87054?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 21:15:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c813284-ba27-4f38-89ff-9b65702369c0</guid><dc:creator>rodrigoe0001</dc:creator><description>&lt;p&gt;Alright, thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87052?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 19:10:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa685f9d-07f6-4cee-b74e-84469b15075b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;There is a great tutorial about how to build a record on a web service. This part covers adding filtering&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.3/Service-Backed_Record_Tutorial.html#configure-the-rule-inputs-for-paging,-searching,-and-filtering"&gt;docs.appian.com/.../Service-Backed_Record_Tutorial.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87050?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 18:14:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9565ff6c-eee7-4235-bbf6-26b93691473a</guid><dc:creator>rodrigoe0001</dc:creator><description>&lt;p&gt;Thanks to you man,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry to bother, I have a follow up question, I am trying to create user filters on this record, but I do not seem to get a field to select from , I got this but not sure where I have to put it in order for me to have it available on the list there&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1634580917185v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87049?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 17:13:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b04a3116-9f53-4133-82b4-da891664032e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Great, thanks for confirming &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87048?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 16:54:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f809b535-ff1b-434b-97dc-1daf6cb0f6dc</guid><dc:creator>rodrigoe0001</dc:creator><description>&lt;p&gt;That did it! So pretty much I will just be missing a few features from syncing, but it gets the job done, thanks a lot Mike, you really have helped me on this man&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87047?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 15:56:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:63660837-8a95-4445-b610-73d6e8f5c9c0</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;As that error message indicates, your expression rule would need to be reconfigured to return a DataSubset (or create a new expression rule that takes the result from the original one and wraps it in a dataSubset, i.e. using &lt;em&gt;toDataSubset()&lt;/em&gt;, where you pass through the pagingInfo value from a rule input you create.&lt;/p&gt;
&lt;p&gt;The result would look something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;todatasubset(
  arrayToPage: rule!TSGU_IndexRows(),
  pagingConfiguration: ri!pagingInfo
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87045?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 15:38:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e4daf625-6cfe-4605-89a6-c0ab527faee5</guid><dc:creator>rodrigoe0001</dc:creator><description>&lt;p&gt;Hello Mike, I tried this and it asks me to select the data source, which I do as the same rule described above , and then data type I select a CDT I created with the name of each field I need. then I get this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1634571534872v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you have another way where I can get to define a record type from a response from bigquery?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87019?ContentTypeID=1</link><pubDate>Sat, 16 Oct 2021 19:49:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3215d9a6-f9a9-4a9a-ab6f-9c562a77591a</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I suppose the error may be due to the fact that your rule uses createDictionary(), which is sourced from a plug-in.&amp;nbsp; What happens if you try to set this expression rule as the data source but without trying to enable Data Syncing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87018?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 21:37:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8cb24dab-4449-4841-a3a3-e0dfc18ab6b2</guid><dc:creator>rodrigoe0001</dc:creator><description>&lt;p&gt;Hey Mike! thanks for your response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think you helped me getting that done actually, and the rule is pretty much what&amp;#39;s above, as you can see here&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1634333799289v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the dictionary we created with you the other day, to be able to transform the response from f:{v &amp;quot;Argentina&amp;quot;} and so on, not sure if yo remember that&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then My rule is that above, but when I try to use it as data source in a record, I get the error, do you think is because the rule is not returning a datasubset?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87017?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 21:28:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:30373e37-d984-415a-82f3-d23bd78e0795</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you post your entire expression rule?&amp;nbsp; (Please use a Code Box, BTW) - one thing I notice is that the rule should return a DataSubset.&amp;nbsp; In my community environment I&amp;#39;m able to create a new expression-backed record pointing to an expression rule that runs a simple a!queryEntity() call, so I&amp;#39;m unsure what else would be the origin of your error message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87016?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 21:00:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a03b2970-0b56-4413-a26e-1e497b542ff5</guid><dc:creator>rodrigoe0001</dc:creator><description>&lt;p&gt;Thanks for your response Danny,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using this expression on my rule, this is what is formatting the data&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;a!forEach(&lt;br /&gt; rule!TGSU_bigquery().result.body.rows.f,&lt;/p&gt;
&lt;p&gt;createDictionary(&lt;br /&gt; {&amp;quot;Duckling&amp;quot;, &amp;quot;Duckling_Country&amp;quot;,&amp;quot;Job_Type&amp;quot;,&amp;quot;Created_Time&amp;quot;,&lt;br /&gt; &amp;quot;Last_Activity_Time&amp;quot;,&amp;quot;Status&amp;quot;,&amp;quot;Candidate_ID&amp;quot;,&amp;quot;CandidateID&amp;quot;,&lt;br /&gt; &amp;quot;Source&amp;quot;}, &lt;br /&gt; fv!item.v&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;Am I doing it wrong?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87014?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 20:56:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ed5d0b9-63eb-4a61-a3b6-09eaedc7e5dc</guid><dc:creator>Danny Verb</dc:creator><description>&lt;p&gt;My guess is you&amp;#39;re using some function in your expression rule that is not supported for web service backed record types&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87012?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 19:40:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8eb0fa32-3b0c-41b2-a401-631b1143e42b</guid><dc:creator>rodrigoe0001</dc:creator><description>&lt;p&gt;I&amp;#39;m actually getting the data using aconnected system of HTTP type, then I use integrations to get the correct URL to display the data and it returns the data from the bigquery table as shown on the first screenshot above.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From there, I then use a rule to get data to have a dictionary to kind of try to get a key: value thing to show it or have it on a record, however, as you see on the second screenshot, I do get the dictionary created, but then if I try to use it on a record, I get the error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, I&amp;#39;m not using functions to get the data and not sure what queryentity does but I&amp;#39;m certainly not using that either.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a json response I also got converted to map, to be available as data source to create records?</title><link>https://community.appian.com/thread/87011?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 18:52:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc526d5e-9e15-48fc-876e-53469260e81e</guid><dc:creator>Danny Verb</dc:creator><description>&lt;p&gt;Which functions are you using the get your data from BigQuery? If you&amp;#39;re using queryEntity then you should be able to choose RDBMS as the database option&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>