Download button in IdentityIQ

I want to create a button that runs a script, generate a CSV file and downloads it. How can I do that in a custom form, or a plugin page?

I don’t think that we can achieve using Custom form. You might need to create a plugin page.

I am not sure of the exact requirements, but I have implemented a similar solution in the past. The approach I took was to trigger an OOTB report using form. The values from the custom form are passed to a workflow, which then triggers the report generation.

Once the report is successfully generated, we can use the jasperResult.getFiles() to fetch the generated CSV files. After the fetching process is complete, attach the CSV files to an email and send it to the users.

In some cases we just hardcoded some of the values in report and will follow same process as above mentioned.

I hope this will helps

1 Like

Hi @moisesestevao1,

You can use plugin for the use-case. You can create button and attach the script to it to generate the CSV and then download it or else simply generate and place the CSV on a specified location that may be taken as input from plugin form.

Please go through the below link, it contains example of plugin development. If any further help is needed, then let us know.

Thanks

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.