LogoLogo
  • Docs
  • Connector Configuration
  • Knowledge Base
  • Changelog
  • Connector Configuration
  • ActiveCampaign
  • Airtable
  • Asana
  • AWS
    • AWS SNS
  • Azure Cognitive Services
  • Blackboard
  • CloudFlare
    • CloudFlare Lists
  • DeepAI
  • DocuSign
  • Dropbox
  • Facebook Business
  • Freshdesk
  • Google
  • Highrise
  • Hubspot
  • Imperva
  • Jira
  • Jotform
  • LinkedIn
  • Mailchimp
  • Microsoft
  • Microsoft Dynamics 365 CRM
  • Monday
  • Open AI
  • Pipedrive
  • Quickbooks
  • Redmine
  • Salesforce
  • Schoology
  • Screenshot API
  • ServiceNow
  • Shopify
  • Slack
  • Snowflake
  • Trello
  • Twilio
  • Twitter
  • Typeform
  • Utilities
    • AI
    • AppEvents
    • Controls
      • Condition
      • Counter
      • Digest
      • Each
      • Join
      • Join Each
      • On Start
      • Set Variable
      • Switch
    • Converters
      • Archive
      • CSV to HTML
      • CSV to JSON
      • CSV to XLSX
      • Data URI to File
      • HTML to CSV
      • HTML to JSON
      • HTML to XLSX
      • JSON to CSV
      • JSON to HTML
      • JSON to XLSX
      • XLSX to CSV
      • XLSX to HTML
      • XLSX to JSON
    • CSV
      • Add Column
      • Add Row
      • Add Rows
      • Create CSV
      • Delete Columns
      • Delete Rows
      • Export CSV
      • Get Cell
      • Get Row
      • Get Rows
      • Import CSV
      • Rename Column
      • Update Rows
    • Email
    • HTTP
      • Delete
      • Dynamic Webhook
      • GET
      • PATCH
      • POST
      • PUT
      • Response
      • Uptime
      • Webhook
    • Language
    • Tasks
      • Request Approval
      • Request Approval Email
    • Test
      • After All
      • Assert
      • Before All
      • Call Count
      • Join
      • Process E2E Results
      • Tick
    • Timers
      • Scheduler
      • Timer
      • Wait
    • Weather
    • XML
      • JSON to XML
      • Validate XML
      • XML to JSON
      • XPath
    • Storage
      • Clear
      • Find
      • Get
      • On Item Added
      • On Item Removed
      • On Item Updated
      • Remove
      • Save To File
      • Set
    • RSS
      • Get Feed
      • New Feed Item
    • FTP
      • Create Directory
      • Download File
      • Get File Info
      • New File
      • Remove Directory
      • List
      • Remove File
      • Rename File
      • Upload File
    • Forms
      • Form Action
      • Form Trigger
    • Filters
      • Contains
      • Equals
      • Greater Than
      • Identity
      • Is Not Empty
      • Less Than
      • Modulo
      • Not Equal
      • Range
    • Files
      • Archive File
      • Download File
      • Load File
      • Load File Lines
      • Remove File
      • Save File
  • Xero
  • Zendesk Chat
  • Zendesk Tickets
  • Zoho
Powered by GitBook
On this page
  • Overview
  • Usage
  • Notes

Was this helpful?

Export as PDF
  1. Utilities
  2. Storage

Save To File

Overview

The Save to File Component exports stored data to a file, allowing structured storage and retrieval of stored records in CSV or JSON format.

Usage

This component is used to extract data from storage and save it as a downloadable file, providing flexible export options such as sorting and value flattening.

Input Ports

Port
Description

in

Receives parameters for file generation, including storage ID, file type, and sorting options.

Output Ports

Port
Description

out

Emits the file ID of the saved file and the number of records exported.

Properties

Property
Type
Description

storeId

string

The ID of the storage space to export data from.

fileName

string

The name of the exported file.

sortBy

string

Sorts records by key, createdAt, or updatedAt.

fileType

string

File format: csv or json.

flattenValue

boolean

If true, flattens nested JSON values before saving.

Processing Logic

  1. Retrieves Stored Data: Extracts data from the specified storeId.

  2. Sorts Data: Orders records based on the selected sortBy property.

  3. Formats Output:

    • If fileType is CSV, converts records to CSV format.

    • If flattenValue is enabled, nested JSON structures are flattened.

  4. Saves to File: Exports the processed data and returns a file ID.

Output Data Schema

Property
Type
Description

fileId

string

The ID of the generated file.

nRecords

number

The number of records exported.

Notes

  • Flexible Export Options: Supports JSON and CSV formats.

  • Sorting Capabilities: Allows sorting by key or timestamps.

  • Flattening Support: Enables structured flattening of nested values.

This component is ideal for workflows requiring data extraction, structured storage, and external file exports for further analysis or backup.

PreviousRemoveNextSet

Last updated 3 months ago

Was this helpful?