Save Records As Snapshot Link
 
Purpose 
Saves a found set of records to a FileMaker Pro Snapshot Link (FMPSL) file.
See also 
Format 
Save Records as Snapshot Link [“<output filename>”; Create email; Records being browsed/Current record]
Options 
 •
Specify output file allows you to enter the path of the snapshot link. Specify one path per line. FileMaker Pro will use the first path it locates. See Creating file paths. You can also select Create email with file as attachment to create a blank email with the snapshot link as an attachment.
If FileMaker Pro executes 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.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server scheduled script 
Yes 
FileMaker Go 
Yes 
Custom Web Publishing 
No 
FileMaker WebDirect 
Partial 
Runtime solution 
No 
Originated in 
FileMaker Pro 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.
Note  FileMaker WebDirect does not support the Specify output file option. FileMaker WebDirect saves snapshot links to the web browser’s default download 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]
Example 2 
Saves the found set as a snapshot link in a temporary directory, 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]
Related topics 
Get(DesktopPath) function
Get(TemporaryPath) function
Export Records script step
Import Records script step
Script steps reference (alphabetical list)
Script steps reference (category list)