Brian Dunning's FileMaker Custom Functions

RenameContainterFile ( ~FQFN ; ~NewFileName )

This Function will rename the file contained in a container.

  Average rating: 4.7 (23 votes) Log in to vote

Mark Geerdes   Mark Geerdes - Show more from this author
Technology By Design

Share on Facebook Share on Twitter

  Sample input:
Table::Field ; "NewFile.pdf"
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This function will take the fully qualified field name of the container field, and the new file name and will rename the file that is contained in the container. Because it uses the Base64 functions, it is a little slow, so it might be best practice to Perform Script On Server. If the containers are compressed, you need to add a .gz to the end of the new file name in order to make it work correctly.

Parameters: Fully Qualified Field Name of Container, New Name of File

Created 12/29/2014 - Mark Geerdes



David   David, Sacramento,Ca
Dec 9, 2015
Wonderful find. It even works with externally stored containers. It changes the internally stored name as well as the name of the document itself. 5 Stars
bob   bob
Nov 17, 2017
Do you have Script
Mark Geerdes   Mark Geerdes, Technology By Design
Nov 18, 2017
Not sure what you mean. You will need FileMaker Advanced to import the custom function into your file. Then in your script, do a set field command to the container field. In the calculation box, use the name of the Custom Function, and give it the parameters as shown above.

Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth:

Under construction. Email me your wish list for improvements.