You can use SnapGPT to extract existing parameters when generating expressions for the Mapping table.
In this example, we defined the bucket and path parameters in the pipeline settings.
-
Open a Mapper Snap and place your cursor in the Expression field.
Generate SnapLogic expressions appears above the prompt (lower right side).
- Click Generate SnapLogic expressions to generate an example prompt.
Note that the example prompt is highlighted.
-
Replace the highlighted text in the prompt with what you want SnapGPT to generate.
In this example we replaced the highlighted text with
Generate SnapLogic expressions to extract bucket and path.
Suggested mappings are displayed in the Preview panel.
- In the SnapGPT Preview, select the mappings you want to keep and click Keep Selected.
The Expression and Target path fields are now populated with the generated mapping. The updated fields are highlighted in green.