...
Snap type:
...
Read
...
Description:
...
In this article
Table of Contents | ||||
---|---|---|---|---|
|
Overview
You can use this Snap to generate a new CSV document for the next Snap in the pipeline.
Clicking Edit CSV will launch the CSV Editor.
The CSV will be stored in the Snap (after clicking OK). The CSV can be exported to SnapLogic's file system using the export action or being imported from there using the import action.
The CSV can be customized to meet specific needs, such as having:
1) static content that produces one output document.
...
Info |
---|
Variables in the CSV, such |
...
as $name or $email are the variables that are retrieved through the input view of the Snap during execution. |
...
You can map these variables by using an upstream Data or Structure Snap. |
...
Snap Type
CSV Generator Snap is a Read-type Snap that reads or generates a new CSV document for the next Snap in the Pipeline.
Prerequisites
...
...
None
...
.
Support
...
- Ultra pipelines: May work in Ultra Pipelines.
- Spark mode (Deprecated): Not supported in Spark mode.
...
Accounts are not used with this Snap.
...
Input | This Snap has exactly one document input view. |
---|---|
Output | This Snap has exactly one document output view. |
Error | This Snap has at most one document error view and produces zero or more documents in the view. |
...
Settings
Label
...
Edit CSV
...
for Ultra Pipelines
Works in Ultra Pipelines.
Snap Views
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps |
---|---|---|---|
Input | Document |
|
|
Output | Document |
|
|
Error | Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab. The available options are:
Learn more about Error handling in Pipelines. |
Limitations and Known Issues
None.
Snap Settings
Info |
---|
|
Field Name | Field Type | Description | ||
---|---|---|---|---|
Label* Default Value: CSV Generator | String | Specify a unique name for the Snap. | ||
Edit CSV* | Button | Click the button to launch the CSV editor to define a CSV document. The editor loads an existing CSV document if you have defined it earlier. You can save the CSV file in SnapLogic's file system or import an existing CSV document from it. Learn more about editing CSV document.
You can customize the CSV:
| ||
Snap Execution Default Value: Validate & Execute | Dropdown list | Select one of the three modes in which the Snap executes. Available options are: |
...
|
Editing CSV document
Click Edit CSV to launch the CSV Editor.
Edit the CSV file as required.
Click Ok.
The JSON document is stored in the Snap.
Options in CSV Editor
...
The following table describes the numbered callouts in the image:
Callout Number | Option | Description |
---|---|---|
1 | Hide whitespace | Hides the whitespace in the output that you may have in the CSV input document. |
3 | Export | Export the JSON document to SnapLogic's file system (SLFS) |
4 | Import | Import a JSON document from your local directory or SLFS. |
...