Hi Pratap,
Auto Script runs on the server therefore it gets saved into the server location.
There are few things which I can think of:
1. Write bean class and try to copy the logic of download list button. I am not sure but if you read how maximo is saving file to local directory in the download list bean classes then you might be able to replicate it in Maximo 7.6.1 or above versions using auto script.
2. Work Centers are client side programming so customizing one of the work center might be a easier solution.
3. One other option is to put the file in a mapped drive from the auto script. The mapped drive which is accessible from maximo server as well as your local system.
Thanks,
Biplab
------------------------------
Biplab Choudhury
Tata Consultancy Services
------------------------------
Original Message:
Sent: 07-08-2021 15:34
From: Pratap Seetharaman
Subject: restAPI File download
We are calling a restApi call using the service.invokeEndpoint. The API returns a binary response and in turn create a file from it. We would like the file to be saved locally, but it always gets saved on the Maximo Server. Is there a way to save it locally ?
Any help is greatly appreciated.
Thanks,
P. Seetharaman
#Integrations
------------------------------
Pratap Seetharaman
DTE Energy
------------------------------