Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Some required fields in the input schema suggest may show as not required due to the limitations in Zuora OpenAPI specification.

Snap Views

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Input 

Document

  • Min: 0

  • Max: 2

  • Mapper

  • JSON Parser

A document containing all the information required by the Snap. You can add the second input view to supply the Zuora OpenAPI specification.

Output

Document

  • Min: 0

  • Max: 2

  • JSON Formatter

  • Mapper

  • JSON Splitter

  • The HTTP response for the specified operation in the first output view. 

    • Parts and referred objects of the specification related to the selected path and operation in the second output view.

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 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

Info
  • Asterisk (*): Indicates a mandatory field.

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

  • Expression icon ((blue star)): Indicates whether 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 fieldset.

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

Field Name

Data Type

Description

Label*

Default Value:Zuora OpenAPI
Example:Create Product

String

Enter 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.

OpenAPI specification

Default Value: N/A
Example: https://assets.zuora.com/zuora-documentation/swagger.yaml

sldb:///openapi.json

openapi.json

openapi.yaml

String/Expression

Enter the URL for the Zuora OpenAPI specification (JSON or YAML) file. You can leave this field blank if you want to use a built-in Zuora OpenAPI 3.0 specification file.

The supported file protocols are https:// and sldb:///

The syntax for file path in SLDB:

  • Same project as the Pipeline:

    Code Block
    <filename>.json sldb:///<filename>.yaml
  • Different project:

    Code Block
    sldb://<project_space>/<project>/<filename>.json
    sldb://Docmentation/ZuoraTest/openapi.json

OpenAPI path*

Default Value:N/A
Example: /v1/object/product

String/Expression/Suggestion

Enter the path defined for the given Zuora OpenAPI specification or select from the suggestions list.

Operation*

Default Value: N/A
Example: post

String/Expression/Suggestion

Specify the operation to perform on the selected OpenAPI path or select from the suggestions list.

Number of Retries

Default Value: 0
Example: 3

Integer/Expression

Specify the interval in seconds between two reconnection attempts.

Retry Interval (seconds)

Default Value: 1
Example: 2

Integer/Expression

Specifies the minimum number of seconds for which the Snap must wait before attempting recovery from a network failure.

HTTP Headers

Use this field set to add additional headers to the HTTP request headers defined in the Zuora OpenAPI specification. This field set comprises the following fields:

Headers

String

Specify a name for the HTTP header.

Values

String

Specify a value for the HTTP header.

Query Parameters

Use this field set to to add query parameters in addition to those defined in the Zuora OpenAPI specification. Specify each query parameter in a separate row. Click (blue star) to add a new row.

Parameters

String

Specify a name for the query parameter.

Values

String

Specify the value for the query parameter.

Snap Execution

Default Value:  Execute only
Example:Validate & Execute

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, 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.

Reading Contact ID from an Account

...

We configure the Mapper Snap to add data and send it to the Open API Snap.

Settings

Output view

Image Modified

Image Modified

The output from the upstream Snap is used to create a unique account ID using Open API Snap. Following are the Snap settings and the output view:

Settings

Output view

Image Modified

Image Modified

Using Mapper Snap, we send data to create a contact for an account by mapping a unique account ID as highlighted in the Mapping table below. The details of the data created can be seen under Expression and Target Path. The Output view for the Mapper Snap is as follows:

Settings

Output view

Image Modified

Image Modified

Upon validation, a unique contact ID is generated in the output. The Settings and Output view are as follows:

Settings

Output view

Image Modified

Image Modified

We configure the Mapper Snap to pass the unique contact ID to the downstream (OpenAPI) Snap with Get operation by passing $entity.Id to the Open API snap.

Image Modified

Image Modified

Image Modified

Image Modified

Sample Pipelines

The following sample pipelines show three products, TeamCollab Basic, TeamCollab Premium, and TeamCollb Enterprise that are launched for Zuora Tutorials. Visit Zuora Tutorials to understand the exercises and how these Pipelines can perform the exercises.

...

Related Links