Skip to main content
May 21, 2024
Question

How to rename the file while using the safelink

  • May 21, 2024
  • 8 replies
  • 1 view

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

8 replies

stefanhelzle0001
May 21, 2024

A safelink does not allow to provide an alternative file name.

May 21, 2024

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

stefanhelzle0001
May 21, 2024

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.

santhoshr9843
May 23, 2024

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.

May 24, 2024

Thank you for the response