Create a File with Header Value in a Specific Location

In this pipeline, the JSON Formatter Snap, creates a file with a header value on a specified location. The metadata is passed to the File Writer Snap using the Binary Header and the Content properties on the JSON Formatter Snap.


JSON Formatter Example pipeline

  1. Configure the JSON Generator Snap to pass the values for the file and the records to be created.

    The JSON Generator Snap passes the values for the file and the records to be created.


    JSON Generator Snap configuration

  2. Configure the JSON Formatter Snap to pass the metadata to the File Writer Snap.

    The JSON Formatter Snap passes the metadata to the File Writer Snap.


    JSON Formatter Snap configuration

  3. Configure the File Writer Snap to create the file using metadata passed from the JSON Formatter Snap.

    The File Writer Snap creates the file "demo-" + $['content-location'] + ".json" on a specified content location.

    The successful execution of the pipeline displays the below output preview:
    Note: The file headers created on the sldb location, and the files names as demo-abc.json and so on.

To successfully reuse pipelines:

  1. Download and import the pipeline into SnapLogic.
  2. Configure Snap accounts as applicable.
  3. Provide pipeline parameters as applicable.