Is it possible to pass the report name in a data-driven subscription query for a "save to network share" job?
I want to create a table that contains the titles all of my reports, their respective file paths, default output formats, etc. I plan to use a query that would return the details based on where the report name equals the name in the table. This way I enter the same query across all of the subscriptions and it would work regardless of which report it is tied to.
Ex.
Select rpt_name, filepath, ouput_fmt
From rpt_tbl_list
Where rpt_name = <report name>
I tried the "@reportname" that is used when the report is emailed but it doesn't seem to work when you want to save the file to a network share. When I entered the "@reportname" into the query box, the query validation failed.
Thanks.