Hi All,
I have a file uploaded to sharepoint with encrypted file name ex: 1234.pdf .
I have the original name of the file stored in table and while providing a safelink for download , I need to replace 1234.pdf with original name from table.
Currently safelink downloads the file with default/encrypted name of 1234.pdf .
What approach can be taken to have the file downloaded in original name. Please suggest.
Appreciate the help .
Note: if we download to Appian KC temporary and then rename the file, it will become a 2 step process. I would like to avoid that.
Thanks
Raj
Discussion posts and replies are publicly visible
A safelink does not allow to provide an alternative file name.
Thanks for the response, is there any other way using different components where the file can be renamed dynamically in a single go.
Thank you
I don't think so.
It might be possible to create a web API in Appian which downloads the file, adjusts the header, and then returns the file directly. So you would change your link to point to that API.
Not sure if its possible to do with a single click. However you can first download the file in a process model and then edit the name using the below smart service
https://docs.appian.com/suite/help/24.1/Edit_Document_Properties_Smart_Service.html#
If you want to do it with a single click then consider creating Web API which can return you the final document.
Thank you for the response
Hi Stefan , but we can only call the smart services in a POST call, the download Document web Api is of GET and we cannot start a process in GET calls. Am i missing something?
Which smart service would you want to call? I have in mind to create an API, which calls the integration to download that file directly in the code.