Save Records As Snapshot Link
Purpose 
Saves a set of found records to a FileMaker Pro Snapshot Link (FMPSL) file.
Format 
Save Records As Snapshot Link [“<output filename>”; Records being browsed/Current record]
 •
Select Specify output file or click Specify to display the Specify Output File dialog box, and enter the path of the snapshot link. Click Add File and choose the folder to save the file to, or type the path directly in the list. 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.
 •
For Specify, choose Records being browsed (to save the entire found set of records), or Current record (to save 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 
Saving and sending records as a snapshot link
Get(DesktopPath) function
Get(TemporaryPath) function
Export Records script step
Import Records script step
Script steps reference (alphabetical list)
Script steps reference (category list)