Dynamic file name generation for data model reports
Summary: I have requirement for dynamic file name generation which will be like the file name with year or period and date extension .I have included the sql code at the end of the select clause of data model sql like table.column_name || '' || :Year || '' || nvl(:Period,'ALL') || '_' || to_char(sysdate,'YYYYMMDD_HH24MISS') as FILE_NAME. And also prepared a Bursting query for the same data model report.
SELECT
'PDF' AS OUTPUT_FORMAT,
FILE_NAME AS OUTPUT_NAME,
'FILE' AS DELIVERY_CHANNEL,
NULL AS TEMPLATE_NAME,
NULL AS LOCALE,
NULL AS OUTPUT_LOCALE,
NULL AS DEL_CHANNEL_KEY,