<?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 Can´t find report summary/description element in SAS Rest API Visualization in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Can-t-find-report-summary-description-element-in-SAS-Rest-API/m-p/688164#M965</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have made a "metadata solution" that serves some main areas/needs in our organization&lt;/P&gt;&lt;P&gt;1. Give business analyst and data scientists etc. overview and fast access to all data and visualisation on our Viya solution&lt;/P&gt;&lt;P&gt;2. show relationship(data lineage) from visualisation(reports/analysis) to CAS tables, Users and data elements(columns)&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Keep track of report usage, table/files usage and table usage and column changes on cas tables.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. To be continued....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://SAS%20Rest API" target="_blank" rel="noopener"&gt;https://developer.sas.com/apis/rest/Visualization/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The solution uses the rest API and some other SAS function to collect this data a I have built a visual analytics dashboard/report with search option for all metadata elements. To get control over all our business data and insight is something we have been looking for many years now. Finally we are getting somewhere with this problem. I believe many organisations have the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question: &lt;/STRONG&gt;I am trying to find the report summary/description element in the rest api and data columns that are in use in a report. Has anyone looked into this?&lt;/P&gt;&lt;P&gt;I can list out all kinds of details about a report, graphs, tables, calculated elements, sections, columns available(in datasource) etc. but not &lt;EM&gt;summary text&lt;/EM&gt; or &lt;EM&gt;used columns&lt;/EM&gt;...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Get report content metadata:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PROC HTTP clear_cache METHOD = "GET" oauth_bearer=sas_services OUT = &lt;EM&gt;&lt;STRONG&gt;rcontent&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;URL = "&amp;amp;BASE_URI/reports/reports/&amp;amp;id/content";&lt;BR /&gt;HEADERS "Accept" = "application/vnd.sas.report.content+json";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;&lt;STRONG&gt;rcontent&lt;/STRONG&gt;&lt;/EM&gt; libname have n number of tables with all kinds of report metadata but still haven´t found what I´m looking for:-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Search for anything.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50046iA2E670B38EECF182/image-size/large?v=v2&amp;amp;px=999" role="button" title="Search for anything.PNG" alt="Search for anything.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2020 11:29:30 GMT</pubDate>
    <dc:creator>ornulfth</dc:creator>
    <dc:date>2020-10-01T11:29:30Z</dc:date>
    <item>
      <title>Can´t find report summary/description element in SAS Rest API Visualization</title>
      <link>https://communities.sas.com/t5/Developers/Can-t-find-report-summary-description-element-in-SAS-Rest-API/m-p/688164#M965</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have made a "metadata solution" that serves some main areas/needs in our organization&lt;/P&gt;&lt;P&gt;1. Give business analyst and data scientists etc. overview and fast access to all data and visualisation on our Viya solution&lt;/P&gt;&lt;P&gt;2. show relationship(data lineage) from visualisation(reports/analysis) to CAS tables, Users and data elements(columns)&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Keep track of report usage, table/files usage and table usage and column changes on cas tables.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. To be continued....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://SAS%20Rest API" target="_blank" rel="noopener"&gt;https://developer.sas.com/apis/rest/Visualization/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The solution uses the rest API and some other SAS function to collect this data a I have built a visual analytics dashboard/report with search option for all metadata elements. To get control over all our business data and insight is something we have been looking for many years now. Finally we are getting somewhere with this problem. I believe many organisations have the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question: &lt;/STRONG&gt;I am trying to find the report summary/description element in the rest api and data columns that are in use in a report. Has anyone looked into this?&lt;/P&gt;&lt;P&gt;I can list out all kinds of details about a report, graphs, tables, calculated elements, sections, columns available(in datasource) etc. but not &lt;EM&gt;summary text&lt;/EM&gt; or &lt;EM&gt;used columns&lt;/EM&gt;...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Get report content metadata:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PROC HTTP clear_cache METHOD = "GET" oauth_bearer=sas_services OUT = &lt;EM&gt;&lt;STRONG&gt;rcontent&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;URL = "&amp;amp;BASE_URI/reports/reports/&amp;amp;id/content";&lt;BR /&gt;HEADERS "Accept" = "application/vnd.sas.report.content+json";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;&lt;STRONG&gt;rcontent&lt;/STRONG&gt;&lt;/EM&gt; libname have n number of tables with all kinds of report metadata but still haven´t found what I´m looking for:-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Search for anything.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50046iA2E670B38EECF182/image-size/large?v=v2&amp;amp;px=999" role="button" title="Search for anything.PNG" alt="Search for anything.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 11:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Can-t-find-report-summary-description-element-in-SAS-Rest-API/m-p/688164#M965</guid>
      <dc:creator>ornulfth</dc:creator>
      <dc:date>2020-10-01T11:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can´t find report summary/description element in SAS Rest API Visualization</title>
      <link>https://communities.sas.com/t5/Developers/Can-t-find-report-summary-description-element-in-SAS-Rest-API/m-p/688525#M966</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/350211"&gt;@ornulfth&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I played around with a basic report I created and was able to locate a few things you may find of interest. Using the 'content' endpoint: /reports/reports/&amp;amp;reportid/content returns an XML file. In the file I see the report summary in the &amp;lt;TextTemplates&amp;gt; section:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;TextTemplates&amp;gt;
    &amp;lt;TextTemplate type="detail"&amp;gt;
        &amp;lt;TemplateDefinition&amp;gt;
            &amp;lt;![CDATA[This report lists the average salary of position players in MLB during the 2008 season.]]&amp;gt;
        &amp;lt;/TemplateDefinition&amp;gt;
    &amp;lt;/TextTemplate&amp;gt;
&amp;lt;/TextTemplates&amp;gt;&lt;/PRE&gt;
&lt;P&gt;In the &amp;lt;BusinessItems&amp;gt; element, I see the columns used in the report used in the Category, Measure, or Group section:&lt;/P&gt;
&lt;PRE&gt;            &amp;lt;BusinessItems&amp;gt;
                &amp;lt;RelationalDataItem name="bi150" base="bi103"/&amp;gt;
                &amp;lt;RelationalDataItem name="bi152" base="bi122"/&amp;gt;
            &amp;lt;/BusinessItems&amp;gt;&lt;/PRE&gt;
&lt;P&gt;The "base" parameter corresponds to the DataItem name parameter in the &amp;lt;BusinessItemFolder&amp;gt; section of the &amp;lt;DataSources&amp;gt; element:&lt;/P&gt;
&lt;PRE&gt;    &amp;lt;DataSources&amp;gt;
        &amp;lt;DataSource label="MLB2008" type="relational" name="ds7"&amp;gt;
            &amp;lt;CasResource server="cas-shared-default" library="CASUSER(jofurb)" table="MLB2008" locale="en_US"/&amp;gt;
            &amp;lt;BusinessItemFolder&amp;gt;
                &amp;lt;DataItem name="bi103" xref="POS" usage="categorical"/&amp;gt;
                &amp;lt;DataItem name="bi122" label="Average SALARY" xref="SALARY" aggregation="average"/&amp;gt;
                &amp;lt;DataItem name="bi10" xref="3B"/&amp;gt;......&lt;/PRE&gt;
&lt;P&gt;Is that the metadata your searching for? If so, could you parse those values out of the XML?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 14:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Can-t-find-report-summary-description-element-in-SAS-Rest-API/m-p/688525#M966</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2020-10-02T14:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can´t find report summary/description element in SAS Rest API Visualization</title>
      <link>https://communities.sas.com/t5/Developers/Can-t-find-report-summary-description-element-in-SAS-Rest-API/m-p/688848#M974</link>
      <description>&lt;P&gt;Hi!&amp;nbsp; Thanks, this was spot on!!! I found it in the table&amp;nbsp;TEXTTEMPLATES_TEMPLATEDEFINITI in the value column:-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!!!&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 10:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Can-t-find-report-summary-description-element-in-SAS-Rest-API/m-p/688848#M974</guid>
      <dc:creator>ornulfth</dc:creator>
      <dc:date>2020-10-05T10:30:26Z</dc:date>
    </item>
  </channel>
</rss>

