Skip to main content
April 25, 2022
Question

Retain the file extension

  • April 25, 2022
  • 9 replies
  • 0 views

Hi Team,

Is there a way in Appian where we can retain the file extension as the extension that we are using in our template.
We have a requirement where we are using the excel base template with in-built macro having the file extension as .xlsm and when trying to generate the excel through appian process the file extension is getting changed to .xlsx.
Any suggestions?

Thanks

9 replies

April 25, 2022

Hi,

you can use copy document smart service to copy the file and change the file extension. After changing the file extension you can delete other document if you want. 

April 25, 2022

Hey Naresh,
Thanks for your response, I dont want to change the extension.. I just want to retain the extension as I have on my base template. Is that possible?

mikes0011
Brainy
April 25, 2022

It depends on what smart service you're using to generate your excel.  If it's automatically being changed on you, and there are no apparent settings to manually configure the eventual extension, then it's likely you will need to use the workaround suggested above.  Can you clarify which smart service you're using to handle the generation, since you didn't mention it initially?

April 25, 2022

This is a smart service that converts to Excel. The only way you can achieve it is to copy the file generated into the xlsm extension. Then, delete the original generated file.