Skip to end of banner
Go to start of banner

SnapLogic Create

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 31 Next »

Overview

You can use this Snap to create SnapLogic assets like Tasks, Accounts, Projects, and Pipelines.

You can use a SnapLogic Read Snap to read one pipeline and the SnapLogic Create Snap to copy that pipeline. If you copy the pipeline, the pipeline import rules apply.

Snap Type

Snaplogic Create Snap is a write-type Snap that creates a SnapLogic asset of type Task, Account, Pipeline, Snaplex.

Prerequisites

None.

Support for Ultra Pipelines

Works in Ultra Pipelines

Known Issues and Limitations

None.

Snap Views

Type

Format

Number of Views

Upstream and Downstream Snaps

Description

Input 

Document

  • Min: 1

  • Max: 1

  • SnapLogic Read

  • Mapper

This Snap has precisely one document input view.

Output

Document

  • Min: 0

  • Max: 1

  • SnapLogic Delete

  • SnapLogic Update

This Snap has, at most, one document output view.

Error

This Snap has at most one document error view and produces zero or more documents in the view. 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 while running the pipeline by choosing one of the following options from the When errors occur list under the Views tab. The available options are:

  • Stop pipeline Execution: Stops the current pipeline execution when the Snap encounters an error.

  • Discard Error Data and Continue: Ignores the error, discards that record, and continues with the rest of the records.

  • Route Error Data to Error View: Routes the error data to an error view without stopping the Snap execution.

Learn more about Error handling in pipelines.

Snap Settings

  • Asterisk ( * ): Indicates a mandatory field.

  • Suggestion icon ((blue star)): Indicates a dynamically populated list based on the configuration.

  • Expression icon ((blue star) ): Indicates the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.

  • Add icon ( (blue star) ): Indicates that you can add fields in the field set.

  • Remove icon ( (blue star)): Indicates that you can remove fields from the field set.

  • Upload icon ((blue star) ): Indicates that you can upload files.

Field Name

Field Type

Description

Label*

Default ValueSnaplogic Create
ExampleSnaplogic Create

String/ Expression

Specify a unique name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline.

Asset Type*

Default ValueACCOUNT
Example: PIPELINE

Dropdown list

Select the type of asset to create. The options available are:

  • ACCOUNT

  • FLOWS

  • PIPELINE

  • PROJECT

  • SNAPLEX

  • TASK

  • If the org is configured for Enhanced Account Encryption, the information you use to create an account is automatically encrypted.

  • Project is used for both projects and Project Spaces.

Asset path*

Default value: [None]

Examples: myorg/Engineering/Status/LatestDefects

String/ Expression

Specify the absolute path for the asset in the following format:

<org>/<project_space>/<project>/<asset>

Based on the asset you are trying to create, the leading forward slash ( / ) in an asset path may or may not be required. If the path fails, try entering it without the leading slash.

Snap Execution

Default ValueValidate & Execute
Example: Execute only

Dropdown list

Select one of the three modes in which the Snap executes. Available options are:

  • Validate & Execute: Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, it performs full execution of the Snap (unlimited records) during pipeline runtime.

  • Execute only: Performs full execution of the Snap during pipeline execution without generating preview data.

  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Troubleshooting

Error

Reason

Resolution

The specified asset could not be created.

The absolute path you entered in the Asset Path field is incorrect or missing.

Specify an absolute path in the Asset path field for the Snap to create an asset.

The specified project path is invalid.

The absolute path you entered in the Project Path field is incorrect or missing.

Specify an absolute path in the Project Path field.

The requested asset operation cannot be performed.

The specified operation for the asset is incorrect.

Specify a valid operation for this asset.

Examples

Create a pipeline

You can create a Pipeline from an existing Pipeline by using a pipeline containing SnapLogic Read + SnapLogic Create.

  • In the SnapLogic Read Snap, set the Asset Path to the pipeline you want to copy from the org name down to the pipeline name, such as org/project_space/project/pipeline.

  • In the SnapLogic Create Snap, set the Asset Path to the location and pipeline name that was created, such as org/project_space/new_project/pipeline.

Create a Project

To create a project, you must have a SnapLogic Read Snap that feeds into a SnapLogic Create Snap as the SnapLogic Read Snap is responsible for passing metadata-related information (Org names, users, ACLs) to the downstream SnapLogic Create Snap.

The same practice should also be used for Project Spaces.

Create a Snaplex

Use this method to create a Groundplex when designing a pipeline programmatically.

You can create a Snaplex by building a pipeline with this Snap. Next, create a Triggered Task for this pipeline, and share the URL with your users. Now, users in your Org that do not have Admin privileges can create a Snaplex using this Task URL. 

To create a Snaplex, use a File Reader or a JSON Generator Snap as an upstream Snap, and specify one of the following details:

  • Snaplex Name

  • Snaplex Location

  • Snaplex Environment

The following example shows default Snaplex settings in JSON format in a JSON Generator Snap.

In the SnapLogic Create Snap, specify the following details:

  • Asset Type: Snaplex.

  • Asset Path: The absolute path to the Snaplex.

After you execute the pipeline, go to Manager and check the target Project folder to verify that the Snaplex asset has been created. You can also delete the Snaplex by using the Delete Snap similarly.

Create an account

You can create a Pipeline from an existing Pipeline by using a pipeline containing SnapLogic Read + SnapLogic Create.

Configure the SnapLogic Read Snap as shown below:

  • Specify the Asset Type as Account and Asset Path with the desired path from which the account should be fetched. The output preview displays the account and the associated details, such as path, asset_type, snode_id, and path_id.

Snap Configuration

Snap Output

 

Configure the Mapper Snap with the details, such as path_id, to pass this input to the SnapLogic Create Snap for creating the account.

Snap Configuration

Snap Output

 

 

Configure the SnapLogic Create Snap with the Asset path and the Asset Type to create the specified type of account in the set location. When you execute the pipeline, You can see that the new account is created in the SnapLogic Manager with the Account name OracleAccount2023-10-17T08:49:37.056Z, indicating the type of the account and time and data details.

Snap Configuration

Snap Output

 

 

Snap Pack History

 Click to view/expand
ReleaseSnap Pack VersionDateTypeUpdates
February 2024main25112 StableUpdated and certified against the current SnapLogic Platform release.
November 2023main23721 StableUpdated and certified against the current SnapLogic Platform release.

August 2023

main22460

 

Stable

Updated and certified against the current SnapLogic Platform release.

May 2023main21015 StableUpgraded with the latest SnapLogic Platform release.
February 2023main19844 StableUpgraded with the latest SnapLogic Platform release.
November 2022main 18944 StableUpgraded with the latest SnapLogic Platform release.
August 2022main17386 StableUpgraded with the latest SnapLogic Platform release.

4.29

main15993

  

Stable

Upgraded with the latest SnapLogic Platform release.

4.28main14627 StableUpgraded with the latest SnapLogic Platform release.

4.27

main12833

 

Stable

Upgraded with the latest SnapLogic Platform release.
4.26main11181
 
StableUpgraded with the latest SnapLogic Platform release.
4.25main9554
 
StableUpgraded with the latest SnapLogic Platform release.
4.24main8556
 
StableUpgraded with the latest SnapLogic Platform release.
4.23main7430
 
Stable

Upgraded with the latest SnapLogic Platform release.

4.22main6403
 
StableUpgraded with the latest SnapLogic Platform release.
4.21snapsmrc542
StableUpgraded with the latest SnapLogic Platform release.
4.20snapsmrc535
StableUpgraded with the latest SnapLogic Platform release.
4.19snapsmrc528
Stable

The SnapLogic Read Snap now features the Normalization checkbox, which, when selected, makes Pipeline comparisons easier.

4.18snapsmrc523
Stable

Enhanced all the Snaps in this Snap Pack with the capability to create, delete, and update Snaplexes directly inside the Pipeline. This feature facilitates administrative tasks if you are running your Pipelines on a Groundplex.

4.17 PatchALL7402
Latest

Pushed automatic rebuild of the latest version of each Snap Pack to SnapLogic UAT and Elastic servers.

4.17snapsmrc515
Stable

Added the Snap Execution field to all Standard-mode Snaps. In some Snaps, this field replaces the existing Execute during the preview check box.

4.16 snapsmrc508
StableUpgraded with the latest SnapLogic Platform release.
4.15snapsmrc500
StableUpgraded with the latest SnapLogic Platform release.
4.14 snapsmrc490
StableUpgraded with the latest SnapLogic Platform release.
4.13snapsmrc486
StableUpgraded with the latest SnapLogic Platform release.
4.12snapsmrc480
StableUpgraded with the latest SnapLogic Platform release.
4.11snapsmrc465
Stable

Read Task output includes task history.

4.10snapsmrc414
StableUpgraded with the latest SnapLogic Platform release.
4.9snapsmrc405
StableUpgraded with the latest SnapLogic Platform release.
4.8.0snapsmrc398
Stable
  • Support for Project and Project Spaces as an Asset Type added to SnapLogic Create, SnapLogic Delete, SnapLogic Read, and SnapLogic Update. This is used for both projects and Project Spaces.

  • Support for the pipeline as an Asset Type added to SnapLogic Update.

  • Support for enabling/disabling tasks added to SnapLogic Update.

4.7snapsmrc382
StableUpgraded with the latest SnapLogic Platform release.
4.6snapsmrc362
Stable

Upgraded with the latest SnapLogic Platform release.

4.5.0snapsmrc344
Stable

Introduced in Release 4.5. This Snap Pack contains the following Snaps: SnapLogic Create, SnapLogic Delete, SnapLogic List, SnapLogic Read, SnapLogic Update.

  • No labels