Forum Discussion

AaronB's avatar
AaronB
Qrew Trainee
4 months ago

Attachment - file name

I need to rename an attachment.  I want to remove all blank spaces and replace them with underscores.  I found a post from 3 years ago that asked the same question.  There was no inherent solution at the time.

In a pipeline, I can upload the file to Sharepoint and add text to the front or end of the name, but I can't inherently adjust the original name.

In the below example, I am adding a string of characters to the beginning of the name but I can't figure out how to adjust the 'File name' property of the Attachment type. 

Any suggestions on how to change the the 'File Name' attribute prior to calling a pipeline (i.e., formula-text field) or within a pipeline will be appreciated.

Thanks...Aaron

  • Is the existing file located in Quickbase or in Sharepoint?  If in Quickbase you can make a new field in your app to remove the spaces using the SearchAndReplace function.  Or are you asking for the Jinja code to manipulate the file name.