The business has Excel templates for bulk processing. They want users to be able to download a template when they click a Template link and then use that same template for bulk upload.
How can this requirement be implemented in Pega Constellation 25.1? Specifically, how can a user download a predefined Excel template from a link or button in a Constellation application?
using this activity able to download the excel. (Tested)
Need to call this activity from the UI. To achieve this, I tried calling the activity from a Data Transform and then invoking that Data Transform on the radio buttonโs value change event. I also tried the same approach with a checkbox, but neither worked
I need to provide a link to the user so that, when they click it, an Excel template is downloaded automatically.
1. Store the static document in Pega as a ๐๐ถ๐ป๐ฎ๐ฟ๐ ๐๐ถ๐น๐ฒ rule.
2. Create a field of type ๐จ๐ฅ๐.
3. Create a ๐ฝ๐ฎ๐ฟ๐๐ถ๐ฎ๐น ๐๐ถ๐ฒ๐ (read-only) that renders this URL field.
4. Place this view wherever you want in the UI.
5. Create a ๐๐ฎ๐๐ฎ ๐ง๐ฟ๐ฎ๐ป๐๐ณ๐ผ๐ฟ๐บ to populate the URL property using the Binary File ruleโs directory + file name.
6. Call this Data Transform from the right place (e.g., pre-processing or via a data page), depending on your design.