I have a custom link titled Download on my Contacts page layout that when clicked currently takes me to the Export Report page with standard buttons Export and Done. I used the URL content source /00Oi0000002vZ5W?csvsetup=1 for the custom link to achieve this.
Now, instead of going to this page, I want the link to directly download the report in one click, just as clicking on standard Export button does. The URL doesn't change when Export is clicked, so I don't know how to achieve this with the URL method.
If URL is not possible, how can I do this using some other method, like OnClick JavaScript?