0

i want to filter a report and export it to xlsx when the user click on a button as in lightning component, i use a link like this but it don't work: String url = baseUrl + '.lightning.force.com/lightning/r/Report/'+ reportId+ '/view?fv0=' + userKey + '&xlsx=1&exp=1&enc=UTF-8&isdtp=p1'; It just filter the report but don't export it. Can someone help me? Thanks

1 Answer 1

0

Could you please try following.

String url = baseUrl + '.lightning.force.com/servlet/PrintableViewDownloadServlet?isdtp=p1&reportId='+reportId;
1
  • i did it but it only donwload the report not filtered it. Commented Apr 23, 2021 at 13:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .