- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Report Plugin - How to access account_id
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2022 11:41 AM
12-02-2022 11:41 AM
Hi.
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.
Is there any way to get this information?
Thanks!
Solved! Go to Solution.
- Tags:
- reports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2022 12:47 AM
12-05-2022 12:47 AM
Re: Report Plugin - How to access account_id
Hi there,
I will have a look for you and come back. Thanks for the question!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2022 04:01 AM
12-05-2022 04:01 AM
Re: Report Plugin - How to access account_id
Hi Chris.
Thanks for the quick response!
Let’s wait for version 5.4.13/5.5.3.
Great job!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2022 03:34 AM
12-05-2022 03:34 AM
SolutionHello,
I have pushed a fix for this issue in Morpheus future versions 5.4.13 and 5.5.3.
Using the following logger in the process
method of the ReportProvider
:
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()}")
The output before the fix:
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
In 5.4.13 and 5.5.3…
The output from the Master tenant:
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
The output from a subtenant:
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
My apologies for the inconvenience.
Kind regards,
Chris