Contents



Creating a file feed

To create a file feed:

  1. Open the folder where the file is stored.

  2. Open the action menu for the file and click Create Feed.
    File manager checks to see if there are any files with the same filename.
    If not, a message appears showing where the file will be copied to and what its updated filename will be.

  3. Click Create Feed.
    File Manager copies the file to the upload folder and redirects you to the Create Feed > Import Configuration screen.



Import Configuration

After being redirected from File manager, your chosen file will be pre-selected in the File drop-down:

  1. Complete complete the fields:

    • File type
      Choose a type of file.
      Peak supports CSV, JSON and XML.

      • CSV
        If using a CSV file, this field specifies which separators will be used to distinguish between columns. Value separators can be Comma, Tab or Pipe.

      • JSON
        No additional values are needed for this field.

      • XML
        Enter a value for the root tag.

    • Feed load type
      You can add feed load type, truncate and insert, incremental, or upsert (update and insert).
      For details, see Data feed load types.

    • Primary key
      The primary key is only mandatory for upsert feeds.

    • Feed name
      Enter a suitable name for the feed:

      • The name should be meaningful.

      • Only alphanumeric and underscore is allowed.

      • It must start with a letter.

      • Must not end with an underscore.

      • Up to 50 characters allowed.

  2. Click NEXT to move to the Destination stage.



Destination

The Destination stage enables you to choose where your data will be stored.

The destinations available will depend on the data warehouse your Peak organization uses. For example, Redshift users have S3 and Redshift as options, while Snowflake users have S3 and Snowflake.

For a guide to setting a destination for a feed, see Choosing a destination for a data connector.




Setting a trigger

Triggers enable you to define when a data feed is run. There are three types of Trigger:

  • Schedule
    Schedule when a feed runs. A basic and advanced (cron) scheduler are available.

  • Webhook
    Trigger a feed to run via a Webhook from another system.

  • Run Once
    Trigger a feed to run once at either a set time or manually from the Feeds list.

For a guide to setting triggers for your data feeds, see How to create a trigger for a data feed.