<?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 What's the API call to retrieve hierarchical reference list in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/What-s-the-API-call-to-retrieve-hierarchical-reference-list/m-p/863984#M1705</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have any of you figured out how to get a hierarchical list with an API/URL call?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like lists with this url?&amp;nbsp;&lt;/P&gt;&lt;P&gt;svi-datahub/admin/lists?name=OBJECTNAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;On the Viya Admin page (Manage Investigate and Search), on the "Data Object" tab and the "Reference Data" sub tab, I have created a list named "regions"&amp;nbsp; which contains a list of districts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I enter the url into the browser "homepage/svi-datahub/admin/lists?name=regions, the list "regions" is returned as json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, now I try to get a hierarchical list as json via an API call. This hierarchical list has been created in&amp;nbsp;"Reference Data" sub-tab, tab Hierarchies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2023 13:37:41 GMT</pubDate>
    <dc:creator>uncle_ho</dc:creator>
    <dc:date>2023-03-14T13:37:41Z</dc:date>
    <item>
      <title>What's the API call to retrieve hierarchical reference list</title>
      <link>https://communities.sas.com/t5/SAS-Viya/What-s-the-API-call-to-retrieve-hierarchical-reference-list/m-p/863984#M1705</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have any of you figured out how to get a hierarchical list with an API/URL call?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like lists with this url?&amp;nbsp;&lt;/P&gt;&lt;P&gt;svi-datahub/admin/lists?name=OBJECTNAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;On the Viya Admin page (Manage Investigate and Search), on the "Data Object" tab and the "Reference Data" sub tab, I have created a list named "regions"&amp;nbsp; which contains a list of districts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I enter the url into the browser "homepage/svi-datahub/admin/lists?name=regions, the list "regions" is returned as json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, now I try to get a hierarchical list as json via an API call. This hierarchical list has been created in&amp;nbsp;"Reference Data" sub-tab, tab Hierarchies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/What-s-the-API-call-to-retrieve-hierarchical-reference-list/m-p/863984#M1705</guid>
      <dc:creator>uncle_ho</dc:creator>
      <dc:date>2023-03-14T13:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: What's the API call to retrieve hierarchical reference list</title>
      <link>https://communities.sas.com/t5/SAS-Viya/What-s-the-API-call-to-retrieve-hierarchical-reference-list/m-p/864004#M1706</link>
      <description>Your question barly makes senese. Please rewrite it with a minimal working example.</description>
      <pubDate>Tue, 14 Mar 2023 11:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/What-s-the-API-call-to-retrieve-hierarchical-reference-list/m-p/864004#M1706</guid>
      <dc:creator>rudfaden</dc:creator>
      <dc:date>2023-03-14T11:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: What's the API call to retrieve hierarchical reference list</title>
      <link>https://communities.sas.com/t5/SAS-Viya/What-s-the-API-call-to-retrieve-hierarchical-reference-list/m-p/864055#M1707</link>
      <description>No worries, I have updated the query.</description>
      <pubDate>Tue, 14 Mar 2023 13:38:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/What-s-the-API-call-to-retrieve-hierarchical-reference-list/m-p/864055#M1707</guid>
      <dc:creator>uncle_ho</dc:creator>
      <dc:date>2023-03-14T13:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: What's the API call to retrieve hierarchical reference list</title>
      <link>https://communities.sas.com/t5/SAS-Viya/What-s-the-API-call-to-retrieve-hierarchical-reference-list/m-p/864056#M1708</link>
      <description>&lt;P&gt;So when you call svi-datahub/admin/lists?name=regions the items in the response are your districts which could be retrieved using svi-datahub/admin/lists?name=district_name. Would you be able to read the response from the first call and then iterate through those?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: To answer your question, I don't think there is a separate API call that will return a flat response.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/What-s-the-API-call-to-retrieve-hierarchical-reference-list/m-p/864056#M1708</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-03-14T13:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: What's the API call to retrieve hierarchical reference list</title>
      <link>https://communities.sas.com/t5/SAS-Viya/What-s-the-API-call-to-retrieve-hierarchical-reference-list/m-p/864097#M1709</link>
      <description>&lt;P&gt;Thanks much, that helped .../svi-datahub/admin/lists?name=region_districts_sub_lev did the trick.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 15:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/What-s-the-API-call-to-retrieve-hierarchical-reference-list/m-p/864097#M1709</guid>
      <dc:creator>uncle_ho</dc:creator>
      <dc:date>2023-03-14T15:50:06Z</dc:date>
    </item>
  </channel>
</rss>

