Save Records as Snapshot Link
Saves a found set of records to a snapshot link file.
Options
-
Specify output file allows you to enter the path of the snapshot link. Specify one path per line. FileMaker Pro uses the first path it locates. See Creating file paths. You can select Create email with file as attachment to display a new email message in the user's default email application, with the output file attached.
If FileMaker Pro runs a script that does not specify an absolute path, and the database file containing the script is hosted, the path is assumed to be the current user's Documents folder.
-
Records being browsed saves the entire found set of records.
-
Current record saves only the current record.
-
Create folders specifies whether to create new folders that you specify in the output file path.
Compatibility
Product | Supported |
FileMaker Pro | Yes |
FileMaker Go | Partial |
FileMaker WebDirect | Partial |
FileMaker Server | Yes |
FileMaker Cloud | Yes |
FileMaker Data API | No |
Custom Web Publishing | No |
Originated in version
11.0
Description
This script step operates in all modes except Find mode.
To send a snapshot link file via SMTP, use the Send Mail script step with the snapshot link file as an attachment, and place it after the Save Records as Snapshot Link script step in the script.
Use this script step with the Get(TemporaryPath) function to save the snapshot link file to a temporary location, if you do not need to store the file locally. If you use Get(TemporaryPath) to form a file path, first assign it to a variable, then use the variable in the Specify Output File dialog box. See Creating file paths.
Notes
-
In FileMaker WebDirect:
-
The Specify output file and Create folders options are not supported. FileMaker WebDirect saves snapshot links to the web browser's default download location.
-
This script step is not supported in mobile browsers.
-
-
In FileMaker Go:
-
If you don't specify the output file path, FileMaker Go uses the name of the file to save the snapshot link file.
-
The Create folders option is not supported.
-
-
Server-side scripts can access only certain folders. See Paths in server-side scripts.
-
You can open a snapshot link file on multiple iOS or iPadOS devices if:
-
the FileMaker Pro file is stored on each device.
-
the snapshot link file was created in FileMaker Go.
-
the original FileMaker Pro file and the local copy of the file have matching filenames and are at the same relative location.
-
Example 1
Saves the current record as a snapshot link and asks where the user wants to save the snapshot link file.
Save Records as Snapshot Link [Current record ; Create folders: Off]
Example 2
Saves the found set as a snapshot link in a temporary folder, then creates an email with the snapshot link as an attachment.
Set Variable [$PATH; Value: Get ( TemporaryPath ) & "Invoices.fmpsl"]
Save Records as Snapshot Link ["$PATH"; Create email; Records being browsed ; Create folders: Off]