<?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: [QRS API] to cut a result in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-to-cut-a-result/m-p/2028452#M17971</link>
    <description>&lt;P&gt;Might be a little late to the party here, but hopefully it will help someone in the future.&lt;/P&gt;
&lt;P&gt;You mention the JSON structure is this:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;  "userId": "some_userId_value",&lt;BR /&gt;  "attributes":{&lt;BR /&gt;     "attributeValue": "some_attributeValue_value"&lt;BR /&gt;  }&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;So to get to the attribute's value (which you call "some_attributeValue_value" in this example), you need to use the following filter: &lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;filter=attributes.attributeValue eq 'some_attributeValue_value'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;This navigates the nested properties of the JSON object properly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope that helps someone!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 21:44:57 GMT</pubDate>
    <dc:creator>evanplancaster</dc:creator>
    <dc:date>2023-01-20T21:44:57Z</dc:date>
    <item>
      <title>[QRS API] to cut a result</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-to-cut-a-result/m-p/1637192#M11602</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to load data using QRS API.&amp;nbsp;Everything goes fine, except "&lt;STRONG&gt;user/full&lt;/STRONG&gt;". There are too many rows there. So I decided to cut the result.&lt;/P&gt;
&lt;P&gt;Here is a JSON structure:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-developer/February2019/APIs/repositoryserviceapi/index.html?page=1071" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/February2019/APIs/repositoryserviceapi/index.html?page=1071&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;{&lt;SPAN&gt;"userId":"some_userId_value","attributes":{"attributeValue":"some_attributeValue_value"}&lt;/SPAN&gt;}&lt;/P&gt;
&lt;P&gt;Filtering by "&lt;SPAN&gt;userId" field works fine:&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;A href="https://localhost/qrs/user/full?filter=userId" target="_blank"&gt;https://localhost/qrs/user/full?filter=userId&lt;/A&gt; eq 'some_userId_value'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But I can't use same filtering logic with "&lt;SPAN&gt;attributeValue&lt;/SPAN&gt;" field:&amp;nbsp;&lt;EM&gt;&lt;A href="https://localhost/qrs/user/full?filter=attributeValue" target="_blank"&gt;https://localhost/qrs/user/full?filter=attributeValue&lt;/A&gt;&amp;nbsp;eq 'some_attributeValue_value'&lt;/EM&gt; gives error "Cannot convert the constant value:&amp;nbsp;&lt;SPAN&gt;attributeValue&lt;/SPAN&gt;".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As I can suggest, this is because "&lt;SPAN&gt;attributeValue&lt;/SPAN&gt;" is a subfield (a part of "attributes" array).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But I don't know how to write field names in such a case and if it is possible at all.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Tried to hardcode "...filter=attribute/&lt;SPAN&gt;attributeValue&amp;nbsp;&lt;/SPAN&gt;eq..." and so on, but didn't help.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1) So the first question is what filter construction would be correct in case we need to filter by an attribute, which is not in root table?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As a workaround, I see Offset Pagination. But I have no idea, what should be 'Start','Record','Total' REST connector parameters in the QRS API. 'Start','Record' could be 'offset','limit', but I'm not sure. And what should be Total... And I found it a bit difficult to find any information about it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2) And next question is what parameters to fill in&amp;nbsp;REST connector pagination?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 18:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-to-cut-a-result/m-p/1637192#M11602</guid>
      <dc:creator>romansysyuk</dc:creator>
      <dc:date>2021-08-13T18:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: [QRS API] to cut a result</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-to-cut-a-result/m-p/1749906#M13333</link>
      <description>&lt;P&gt;Did you find a solution about paginating QRS API?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 10:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-to-cut-a-result/m-p/1749906#M13333</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2020-10-06T10:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: [QRS API] to cut a result</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-to-cut-a-result/m-p/2028452#M17971</link>
      <description>&lt;P&gt;Might be a little late to the party here, but hopefully it will help someone in the future.&lt;/P&gt;
&lt;P&gt;You mention the JSON structure is this:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;  "userId": "some_userId_value",&lt;BR /&gt;  "attributes":{&lt;BR /&gt;     "attributeValue": "some_attributeValue_value"&lt;BR /&gt;  }&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;So to get to the attribute's value (which you call "some_attributeValue_value" in this example), you need to use the following filter: &lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;filter=attributes.attributeValue eq 'some_attributeValue_value'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;This navigates the nested properties of the JSON object properly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope that helps someone!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 21:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-to-cut-a-result/m-p/2028452#M17971</guid>
      <dc:creator>evanplancaster</dc:creator>
      <dc:date>2023-01-20T21:44:57Z</dc:date>
    </item>
  </channel>
</rss>

