Skip to end of banner
Go to start of banner

Example 7: Send records in a batch

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 2 Next »

The following example pipeline demonstrates how to pass input documents in a batch using the Group By N and HTTP Client Execute Snap. In this pipeline, the HTTP Client Snap collects input documents until a batch of 20 is reached, then sends them as a list in the payload through a single request.

ex-bs-pipeline-overview.png

Configure the Group By N Snap to batch the entities in groups of 20.

ex-bs-group-by-n-config.pngex-bs-group-by-n-output.png

Configure the HTTP Client Snap with the POST request and the URI to which the request should be sent.

ex-bs-http-client-config.png

On validation, you can view the status code 200, indicating that the payload was successfully sent. Additionally, you can view the entity data in batches of 20 records.

ex-bs-http-client-output.png

Configure the Mapper Snap with $entity.data and $statusLine to further use this data downstream.

ex-bs-mapper-config.png

On validation, you can view the entity data in a batch of 20 records.

ex-bs-mapper-output.png

Important steps to successfully reuse Pipelines

  1. Download and import the Pipeline into SnapLogic.

  2. Configure Snap accounts as applicable.

  3. Provide Pipeline parameters as applicable.

  File Modified
No files shared here yet.
  • No labels