Apply parameter value to scorecard export script?

Hi,

I’m attempting to apply a parameter value to the below scorecard export script but I’m not having much luck. I’ve attempted to add it to the exportRequest ‘viewParameter’ and ‘requests’ but I don’'t think I’m getting the syntax correct. Has anyone tried this before?

https://www.dundas.com/support/developer/script-library/export/create-an-export-for-a-scorecard
https://www.dundas.com/support/api-docs/js/Content/API%20Reference/dundas/export/ExportRequest/cindex.html

Hi Shane,

Can you please let me know if you are getting any errors related to the export script that you are using in the browser development console? You can refer to this support article that shows on how to use the browser development console while working with scripts, it is very helpful especially when you work with complex scripting solutions - https://www.dundas.com/support/learning/documentation/create-view-content/how-to/writing-scripts-using-browser-developer-tools
It would be great if you can share your script as well, I can analyze the script and can try to help you in debugging the issue and getting the export to run.
Besides, we also have a sample script that shows how to export with view parameters - https://www.dundas.com/support/developer/script-library/export/exporting-with-parameters