--- title: "create snapshot()" slug: "basic-create-snap-shot" updated: 2026-08-11T08:38:21Z published: 2026-08-11T08:38:21Z canonical: "docs.lobstersoftware.com/basic-create-snap-shot" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # create snapshot() This function can take a snapshot of the data generated during the Mapping until then. Snapshots can only be taken in a mapping test. Calling the function during an actual job has no effect. Parameter **b** is for an optional description that is shown in the test. For details, see the example below. The return value after successful execution is *true*. **IMPORTANT:** Snapshots are only available in the main memory. A thoughtless use could therefore lead to memory problems! ## Parameters | Parameter | Description | | --- | --- | | a | (optional) If *true*, a snapshot will be created. Default: *false*. | | b | (optional) Description text that is displayed for the snapshot. See example below. | ## Example Let’s assume the following simplified target structure. ![images/download/attachments/201686441/294-version-1-modificationdate-1750216529705-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/294-version-1-modificationdate-1750216529705-api-v2.png) We go through node *Node* three times in our example. And on field *Debug*, we execute the following simple Function chain. ```plaintext iteration-level concat( a, b, [CR-support c] ) a Value: This is pallet b Result: 1 c   Value: create snapshot(a,b) a Value: true b   Result: 2 ``` If we carry out a mapping test, we get the usual result, as with a "normal" mapping test. ![images/download/thumbnails/201686441/295-version-1-modificationdate-1750216529707-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/295-version-1-modificationdate-1750216529707-api-v2.png) Now switch to tab (1) **Snapshot**. ![images/download/attachments/201686441/296_EN-version-1-modificationdate-1750216529670-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/296_EN-version-1-modificationdate-1750216529670-api-v2.png) (2) **Iteration:** For each time the function has been called, you will get an entry here. By double-clicking or via the context menu, you can display the data status of the respective snapshot. See the following screenshots. **NOTE:** The state of the data in tabs *Lists/Maps/Variables* and *SubProfile* *calls* corresponds to the respective iteration. But the tab *Log* always contains the final result of the run. (3) **Description:** The description from parameter **b**. (4) **Complete test run:** This is the complete result again, after the entire test run. The data status after iteration 1 (of 3): ![images/download/attachments/201686441/298_EN-version-1-modificationdate-1750216529674-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/298_EN-version-1-modificationdate-1750216529674-api-v2.png) The data status after iteration 2 (of 3): ![images/download/attachments/201686441/299_EN-version-1-modificationdate-1750216529672-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/299_EN-version-1-modificationdate-1750216529672-api-v2.png) The core task of Phase 3. Mapping transfers data from the source structure to the target structure according to defined rules. In the process, fields can be transformed, functions can be called, and values can be calculated. Function chains in Lobster consist of sequences of functions that are used to define conditions or to process data. The possibility of encapsulating them in macros and reusing them allows for central maintenance and compact use. Changes to a macro affect all profiles with that macro. Function chains can be determined both system-wide and client-specific.