Creates a snapshot for the application currently being executed. The snapshot can then be used in a subsequent restore
operation (#restoreSnapshot(String)). All state data for the application is saved.
Snapshot fields are key value pairs and are used to give additional information to the snapshot.
These can be used for many different purposes:
Further documentation.
Javascript example 1. Add form id, user name and password authentication to the Snapshot:
Javascript example 2. Add security questions to the Snapshot and an expiry date: