I tried iframes, Lightning Container, but no luck. ReportChart is not an option. Is there a way to include standard reports inside lighting component.
1 Answer
Unfortunately it's not possible currently to embed a standard report into a custom lightning component. Only way I could think of is building a custom component using the Salesforce Reports and Dashboards REST API which gives you programmatic access to your report and dashboard data as defined in the report builder and dashboard builder. The API lets you integrate the data into any web or mobile application, inside or outside the Salesforce platform. For example, you might use the API to trigger a Chatter post with a snapshot of top-performing reps each quarter.
-
Thank you for letting know the possibilities. Could you help me understand the advantages we get if Reports Rest API instead of developing everything in custom.– AlexCommented Nov 7, 2018 at 15:12
-
@Alex The advantage is you can build dynamic components to accept your standard report as inputs and hook up the api to get the data of the standard reports. Or build a component to get data from apex class where you write your own logic to build custom data Commented Nov 7, 2018 at 15:15