Reference > Script steps reference > Records script steps > Save Records As Snapshot Link
 

Save Records As Snapshot Link

Saves a found set of records to a FileMaker Pro Snapshot Link (FMPSL) file.

See also 

Options 

Specify output file allows you to enter the path of the snapshot link. Specify one path per line. FileMaker Pro Advanced 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 Advanced 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 directories specifies whether to create new directories that you specify in the output file path.

Compatibility 

 

Product 

Supported 

FileMaker Pro Advanced 

Yes 

FileMaker Go 

Partial 

FileMaker WebDirect 

Partial 

FileMaker Server 

Yes 

FileMaker Cloud 

Yes 

FileMaker Data API 

No 

Custom Web Publishing 

No 

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.

Notes 

In FileMaker WebDirect:

The Specify output file and Create directories 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 directories 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 devices if:

the FileMaker Pro Advanced file is stored on each device.

the snapshot link file was created in FileMaker Go.

the original FileMaker Pro Advanced 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 directories: Off]

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 ; Create directories: Off]

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)