<?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: Report Plugin - How to access account_id in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/report-plugin-how-to-access-account-id/m-p/7247215#M389</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I will have a look for you and come back. Thanks for the question!&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 08:47:18 GMT</pubDate>
    <dc:creator>cdtaylor</dc:creator>
    <dc:date>2022-12-05T08:47:18Z</dc:date>
    <item>
      <title>Report Plugin - How to access account_id</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/report-plugin-how-to-access-account-id/m-p/7247214#M388</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;We wrote a Report Plugin, which is working fine. However, we need to filter by the Account_id of the Tenant in which the report is being generated. I tried use reportResult.getAccount() in process method, but it returns null.&lt;/P&gt;
&lt;P&gt;Is there any way to get this information?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 19:41:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/report-plugin-how-to-access-account-id/m-p/7247214#M388</guid>
      <dc:creator />
      <dc:date>2022-12-02T19:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Report Plugin - How to access account_id</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/report-plugin-how-to-access-account-id/m-p/7247215#M389</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I will have a look for you and come back. Thanks for the question!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 08:47:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/report-plugin-how-to-access-account-id/m-p/7247215#M389</guid>
      <dc:creator>cdtaylor</dc:creator>
      <dc:date>2022-12-05T08:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Report Plugin - How to access account_id</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/report-plugin-how-to-access-account-id/m-p/7247216#M390</link>
      <description>&lt;P&gt;Hi Chris.&lt;/P&gt;
&lt;P&gt;Thanks for the quick response!&lt;/P&gt;
&lt;P&gt;Let’s wait for version 5.4.13/5.5.3.&lt;/P&gt;
&lt;P&gt;Great job!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image001.png"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149643i2BB81F4A96E58023/image-size/large?v=v2&amp;amp;px=2000" role="button" title="30ee188d28d44ffc284ef4b8d35783d0c9c2f9b5.png" alt="30ee188d28d44ffc284ef4b8d35783d0c9c2f9b5.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 12:01:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/report-plugin-how-to-access-account-id/m-p/7247216#M390</guid>
      <dc:creator />
      <dc:date>2022-12-05T12:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Report Plugin - How to access account_id</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/report-plugin-how-to-access-account-id/m-p/7247217#M391</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have pushed a fix for this issue in Morpheus future versions 5.4.13 and 5.5.3.&lt;/P&gt;
&lt;P&gt;Using the following logger in the &lt;CODE style="background : #f0f1f2;"&gt;process&lt;/CODE&gt; method of the &lt;CODE style="background : #f0f1f2;"&gt;ReportProvider&lt;/CODE&gt;:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;log.info("reportResult:${reportResult}  reportResult.getReportTitle():${reportResult.getReportTitle()} reportResult.getAccount():${reportResult.getAccount()}, reportResult.getAccount()?.id:${reportResult.getAccount()?.id}, reportResult.getAccount()?.name:${reportResult.getAccount()?.name}  reportResult.getCreatedBy(): ${reportResult.getCreatedBy()}")
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The output before the fix:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;reportResult:com.morpheusdata.model.ReportResult@3f5aef1  reportResult.getReportTitle():Report Instance Status Dec 05, 2022 11:24:38 reportResult.getAccount():null, reportResult.getAccount()?.id:null, reportResult.getAccount()?.name:null  reportResult.getCreatedBy(): null 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In 5.4.13 and 5.5.3…&lt;BR /&gt;
The output from the Master tenant:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;reportResult:com.morpheusdata.model.ReportResult@29f17f0c  reportResult.getReportTitle():Report Instance Status Dec 05, 2022 11:21:47 reportResult.getAccount():com.morpheusdata.model.Account@75efa894, reportResult.getAccount()?.id:1, reportResult.getAccount()?.name:bartaps  reportResult.getCreatedBy(): com.morpheusdata.model.User@6ca82e5b 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The output from a subtenant:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;reportResult:com.morpheusdata.model.ReportResult@3dca0c5c  reportResult.getReportTitle():Report Instance Status Dec 05, 2022 11:23:17 reportResult.getAccount():com.morpheusdata.model.Account@736a3e27, reportResult.getAccount()?.id:2, reportResult.getAccount()?.name:subtenant  reportResult.getCreatedBy(): com.morpheusdata.model.User@e012baf 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My apologies for the inconvenience.&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 11:34:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/report-plugin-how-to-access-account-id/m-p/7247217#M391</guid>
      <dc:creator>cdtaylor</dc:creator>
      <dc:date>2022-12-05T11:34:15Z</dc:date>
    </item>
  </channel>
</rss>

