Ask AI
Skip to main content

Create bulk data

Function: Create bulk data

This action allows you to efficiently create multiple data records at once and store them in your application's database. It's perfect for situations where you have a list of information (like from a spreadsheet or another system) and you want to quickly add it to your application without creating each record individually.

Input

  • Data (List): The collection of items you want to create as new records. Each item in this list should contain the information for one new record.
  • Data schema (Data Format): The blueprint or structure that defines what kind of data you are creating. You must select an existing data schema from your application that matches the structure of the items in your "Data" list.
  • Name (List of Data Format Attributes): This specifies which fields from your data schema should be used to generate a display name for each new record. You can select one or more attributes, and their values will be combined to form a recognizable name for each created item. For example, if your data schema has "First Name" and "Last Name" fields, you could select both to create a name like "John Doe".

Output

Upon successful execution, this action will create new data records in your application's database, each conforming to the specified "Data schema" and containing the information provided in your "Data" list.

Execution Flow

Real-Life Examples

Here are a few examples of how you might use the "Create bulk data" action in your application:

Example 1: Importing a list of new customers

Imagine you've just attended a trade show and collected a spreadsheet of new customer leads. You want to add them all to your "Customers" data schema in your application.

  • Inputs:
    • Data:
      [
      \{"FirstName": "Alice", "LastName": "Smith", "Email": "[email protected]", "Company": "Acme Corp"\},
      \{"FirstName": "Bob", "LastName": "Johnson", "Email": "[email protected]", "Company": "Globex Inc"\},
      \{"FirstName": "Charlie", "LastName": "Brown", "Email": "[email protected]", "Company": "Pied Piper"\}
      ]
    • Data schema: Customers (an existing data schema in your application with fields like FirstName, LastName, Email, Company)
    • Name: FirstName, LastName (selected from the Customers data schema)
  • Result: Three new customer records are created in your application's database. Each record will have a display name like "Alice Smith", "Bob Johnson", and "Charlie Brown".

Example 2: Populating a product catalog from a supplier feed

You receive a daily feed of new products from a supplier, and you want to add them to your "Products" catalog.

  • Inputs:
    • Data:
      [
      \{"ProductID": "P001", "Name": "Wireless Mouse", "Price": 25.99, "Stock": 150\},
      \{"ProductID": "P002", "Name": "Mechanical Keyboard", "Price": 79.99, "Stock": 75\},
      \{"ProductID": "P003", "Name": "Webcam HD", "Price": 49.50, "Stock": 200\}
      ]
    • Data schema: Products (an existing data schema with fields like ProductID, Name, Price, Stock)
    • Name: Name (selected from the Products data schema)
  • Result: Three new product records are added to your product catalog, each with its respective details and a display name like "Wireless Mouse", "Mechanical Keyboard", and "Webcam HD".

Example 3: Creating a list of tasks for a new project

When a new project is initiated, you have a standard set of initial tasks that need to be created and assigned.

  • Inputs:
    • Data:
      [
      \{"TaskName": "Setup project environment", "AssignedTo": "Developer A", "DueDate": "2023-10-26"\},
      \{"TaskName": "Define project scope", "AssignedTo": "Project Manager", "DueDate": "2023-10-28"\},
      \{"TaskName": "Initial client meeting", "AssignedTo": "Sales Lead", "DueDate": "2023-10-27"\}
      ]
    • Data schema: Project Tasks (an existing data schema with fields like TaskName, AssignedTo, DueDate)
    • Name: TaskName (selected from the Project Tasks data schema)
  • Result: Three new task records are created in your project management section, each with its details and a display name corresponding to the TaskName.