
Expert
Keep up to date with the latest news and thought leadership.
Free FileMaker demo file
A free demo file that writes PDFs, images, and documents out of container fields from a server-side script, with no plug-ins.
Yes, FileMaker can write container data to disk from a server-side script. The native Data File script steps (Create Data File, Open Data File, Write to Data File, and Close Data File) have shipped with FileMaker since version 18, and Claris lists all four as supported on FileMaker Server and FileMaker Cloud. This free demo file shows the whole pattern in a form you can open, run, and copy.
Here is the moment it exists for. A nightly script on FileMaker Server is supposed to drop every signed delivery PDF into a folder your accounting system picks up in the morning. The script ran fine when someone tested it from their desk. In the morning the folder is empty, and nobody knows until accounting asks where the paperwork went.
For years the obvious tool, Export Field Contents, could not run in a server-side script. Teams worked around it with plug-ins, or by moving the export back onto someone’s desktop where a person had to remember to run it.
That changed recently. The FileMaker 2026 release notes state that Export Field Contents “is now supported in scripts run by FileMaker Server, FileMaker Data API, and the OData API.” If your host already runs FileMaker Server 2026, you have two native options. If your host runs FileMaker Server 2025 or earlier, or you are on FileMaker Cloud, where Claris still lists Export Field Contents as not supported, the Data File steps are the native route.
Even with both options available, the Data File steps give you finer control. You decide the exact path, you check for an existing file first, and you decide when the file is closed. The container field does not need to be on the layout, and no plug-in has to be installed on the server.
The demo walks through one export from start to finish. Every step is a native script step, so you can read the script and copy it straight into your own solution.
A script runs on FileMaker Server, on a schedule or through Perform Script on Server
↓
The script builds the full file path and stores it in $filepath
↓
Get File Exists checks that path, and Delete File clears an old copy if one is there
↓
Create Data File makes a new, empty file, then Open Data File returns a file ID
↓
Write to Data File writes the container contents as binary
↓
Close Data File releases the file so other processes can read it
A minimal version of the script looks like this. Field and table names are examples.
Set Variable [ $filepath ; Value: Get ( DocumentsPath ) & Exports::FileName ]
Get File Exists [ "$filepath" ; Target: $exists ]
If [ $exists ]
Delete File [ "$filepath" ]
End If
Create Data File [ "$filepath" ; Create folders: Off ]
Open Data File [ "$filepath" ; Target: $fileID ]
Write to Data File [ File ID: $fileID ; Data source: Exports::Document ]
Close Data File [ File ID: $fileID ]
Three details matter in production:
This table reflects the current Claris compatibility listings for each script step.
| Where the script runs | Data File script steps | Export Field Contents |
|---|---|---|
| FileMaker Pro | Yes | Yes |
| FileMaker Server | Yes, since FileMaker 18 | Yes, from FileMaker 2026 |
| FileMaker Cloud | Yes | No |
| FileMaker WebDirect | No | Partial (downloads to the browser) |
If users need to download a file in WebDirect, Export Field Contents is still the right step. For scheduled and server-side work, the Data File pattern runs everywhere your server does.
The same four steps power other Kyo tools. The Calendar Invite Creator uses them to write .ics invite files, and they pair well with the Multi-File Uploader when files come in through one door and need to go out through another.
Most teams start with one export and find three more. Signed delivery receipts pushed to a shared folder every night. Inspection photos written out for a customer portal. Invoices saved as PDFs where the accounting system can pick them up. A backup copy of every drawing attached to a job. Each one is the same pattern with a different path and a different container field.
Kyo Logic builds custom Claris FileMaker and manufacturing software for businesses across New England and beyond, and this demo comes from the same work: a problem our clients kept hitting. If you want help pointing the pattern at your own tables, setting up the server schedule, or deciding where exported files should live, reach out.
Can FileMaker Server export container data?
Yes. The Data File script steps (Create Data File, Open Data File, Write to Data File, Close Data File) run on FileMaker Server and FileMaker Cloud and have been available since FileMaker 18. From FileMaker 2026, Export Field Contents also runs in server-side scripts.
Do I need a plug-in to export files from a container on the server?
No. The Data File script steps are native FileMaker script steps. The container field also does not need to be on the current layout.
Why should I close the data file after writing?
Open Data File keeps the file open until Close Data File runs or the session ends. Closing it releases the file for other processes, and FileMaker allows a maximum of 25 data files open at once.
Does this work in FileMaker WebDirect?
No. Claris lists the Data File script steps as not supported in WebDirect. For WebDirect downloads, use Export Field Contents, which sends the file to the browser.
Expert
Let’s talk about how we can help you streamline, scale, or innovate—on your terms.
Start the Conversation