function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Download report in lightning by passing current record id as parameter to filter in report

Hi Team,

I am trying to download the report as XLS formate by providing current record id as  input to report filter. In classic, it is working by using the javascript button. How to archive the same functionality in lightning.

Javascript button:'/ReportID?pv0=CurrentRecordId&export=1&enc=UTF-8&xf=xls')

NagendraNagendra (Salesforce Developers) 
Hi Krishna,

You can Pass URL parameters to set filter values in Lightning Experience reports. When linking to reports or when bookmarking a report, add filter value parameters to the URL to customize how the report filters when opened. For example, bookmark your opportunities report and add a filter value parameter to specify whether you see New Business or Existing Business. This feature is new in Lightning Experience.

For more information, I would suggest you please refer to below links. Hope this helps.