Welcome to Fireapis
  • Welcome
  • The Basics
    • Basics
    • Environment
      • Creating an Environment
      • Configure Domain
    • Auth
    • Secrets
    • Tables
      • Creating Table
      • Testing Tables
      • Add a New Column
      • Table Properties
      • Endpoints
      • Data
      • Deleting a Column
      • Deleting a Table
    • Webhooks
    • Marketplace
    • Logics
      • Dynamic Data Source Selection
      • Testing Logics
      • Actions
        • External API Request
        • Query Builder
        • Data Transformation
        • Build Object
        • Build Conditions
        • Other Utilities
          • Token Generation
          • Token Decryption
          • Hashing
          • Validate Hash
          • Encrypt
          • Decrypt
        • Date Utilities
          • Find Difference Between Dates
          • Add/Subtract Dates
          • Format Date
          • Apply Timezone to Date
  • Next steps
    • What Next?
Powered by GitBook
On this page

Was this helpful?

  1. The Basics
  2. Logics
  3. Actions

Data Transformation

This action allows you to transform an array or object into a new object or array, enabling flexible data manipulation and reformatting.

PreviousQuery BuilderNextBuild Object

Last updated 7 months ago

Was this helpful?

Data Selection

In this section, you specify the path from which the object or array data will be taken for the transformation process.

Example: Object Type If you want to transform an existing object into a new object while retaining its current key-value pairs, consider the following:

  • Old Object: {"id":4,"name":"vasanth","is_active":true}

  • New Object: {"id":4,"name":"vasanth","is_active":true, "email":"contact@fireapis.com"}

You will select the path from which the old object should be accessed in the Data Selection section. For dynamic data, you can click the plus (+) icon next to the input field to load the data source model, allowing you to pull in data dynamically.

Form Data

This section allows you to configure how the new object should be created.

Continuing with the previous example, you can add keys and their values to form the new object. For instance, you could add a key named email, and select the path or source from which to pull that value. Again, for dynamic data, use the plus (+) icon to access the data source model for easy selection.

Below, we have attached a detailed explanation for this action.

Data selection in data transformation section
Form data section in data transformation
Data selection in data transformation section
Form data section in data transformation