I have an ExportExcelFile geoprocessing service developed in ArcPy and I want the user to get the download file URL returned so that they can click on the link and download the Excel file. The geoprocessing service is called from a Portal Web App Geoprocessing widget. I can get the string result but that needs to be copied and pasted into another browser tab to work. I just want the user to click on the download URL link. I am returning an output parameter of type "File" but only getting an object [object] in the results. Here is the code:
Solved! Go to Solution.
Thanks for the tip. I will try using SetParameter instead. I believe the problem lies with the argument being sent to the gp service and not what is returned. I take it that you aren’t experiencing the issue I am describing above?