Hi Team,
We have a requirement to download a template from the UI in Pega Constellation.
We have implemented the following approach:
- Stored the static template in Pega as a Binary File rule.
- Created a field of type URL.
- Created a read-only partial view to display the URL field.
- Added the partial view to the required location in the UI.
- Created a Data Transform to populate the URL property using the Binary File rule’s directory and file name.
- Invoked the Data Transform to generate the download URL.
With this approach, the file is downloaded successfully. However, the downloaded file retains the name defined in the Binary File rule.
Requirement:
We need to generate the downloaded file name dynamically in the following format:
<CaseID>_<CurrentDateTime>.<extension>
Example:
Temp-12345_20261030_103345.xlsx
Could you please guide on how to dynamically set the downloaded file name while continuing to use the Binary File/URL-based download approach in Pega Constellation?
Regards,
Suchita Deshmukh