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.
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.