TeamDesk Knowledge Base & Support

   Home      FAQ      Forum      Idea Exchange      Ask a Question      My Stuff      Help   
  
Rename a file attachment
Hello to you all

Do you have an idea on how to rename a file attachment ?

I receive images processed by WhatsApp, with the extension .jfif
They are not displayed by TeamDesk.
These are actually encoded in .jpg format - I only need to rename them.

Kind regards,

Pierre
ID
1507
Category
Integration/API
Author

Pierre
Date Created
2/14/2022 2:47:36 PM
Date Updated
2/20/2026 8:53:59 AM
Comments
Robert P. 6/24/2022 10:47:37 PM
Hi Pierre,
I have a similar question.
Did you ever figure it out?
Thanks,
Robert
Pierre 7/4/2022 9:26:50 AM
Hello Robert
Sorry for my late answer
I did not find any way to do it

Kind regards,

Pierre
Daniel Luz 2/20/2026 8:05:12 AM
Hi there,

How to rename .jfif attachments to .jpg using a Record Update action

TeamDesk doesn't have a built-in "rename attachment" feature, but you can work around this using a Formula-URL column + Record Update action. The trick is that when TeamDesk assigns a URL to a File Attachment column, it downloads the file and uses the filename from the URL.

Step by step:

1. Make your File Attachment column public

Go to the File Attachment column settings (the one that holds the .jfif images) and enable "Public access". This generates a public URL for each file that doesn't require authentication.

2. Create a Formula-URL column

Create a new column of type Formula-URL. Set the formula to:

If(
Right(FileName([Your Attachment Column]), 5) = ".jfif",
Replace(FileUrl([Your Attachment Column]), ".jfif", ".jpg"),
null
)

This returns the public URL of the file but with .jpg instead of .jfif. It returns null if the file doesn't have a .jfif extension (so the action won't touch non-jfif files).

3. Create a Record Update action

Go to Setup > Rules > Actions and create a new Record Update action:

- Name: Rename JFIF to JPG
- Update: Current record
- Assignment: From = your Formula-URL column → To = your File Attachment column

When this runs, TeamDesk will download the file from the URL (which now ends in .jpg) and save it back to the attachment column with the corrected filename.

4. Create a Rule to trigger it

You can trigger this action in different ways:

- On Record Create — if you want it to happen automatically when a new record is added
- On Record Update — when the attachment column changes
- Button — to run it manually on demand
- Scheduled — to process existing records in bulk

Add a condition so it only fires when needed:

Right(FileName([Your Attachment Column]), 5) = ".jfif"

5. For existing records

To fix all existing .jfif files at once, create a View that filters records where the filename ends with .jfif. Then use the Run Action button on that view to process them in bulk.

---
Why this works: JFIF and JPEG are the same format — JFIF is just JPEG with a different extension. Renaming is perfectly safe, no conversion needed. Once renamed to .jpg, TeamDesk will display the images inline as expected.

Note: Replace [Your Attachment Column] with the actual name of your File Attachment column.

Regards,

Daniel Luz
Pierre Christophorov 2/20/2026 8:47:28 AM
Dear Daniel

Thank you for this beautifully simple solution

Kind regards,

Pierre
Daniel Luz 2/20/2026 8:53:59 AM
You're welcome, but I have to admit the answer is from Claude Code.

I've been using it with Teamdesk and have managed to put together some very interesting processes.

I have a skill and an MCP published, if you're interested: https://teamdesk.crmdesk.com/answer.aspx?aid=30511

Best Regards, Daniel Luz
Feedback
Back to Search Results