create-data-record

create-data-record Function Type

The create-data-record function type creates a new data record in a collection.

Usage

This function type is used in Actions to provide access to data collection create functionality.

Configuration Example

name: Create Task
key: create-task
inputSchema:
  type: object
  properties:
    title:
      type: string
    description:
      type: string
type: create-data-record
config:
  dataSource:
    collectionKey: tasks
  fieldMapping:
    exportValue:
      summary:
        $var: $.input.title
      description:
        $var: $.input.description
      status: "open"

Configuration Parameters

  • dataSource - Data source configuration
    • collectionKey - Identifier of the data collection to operate on
    • collectionParameters - Parameters passed to the collection methods
    • udm - (for universal integrations only) Universal Data Model to write
  • fieldMapping - Field mapping configuration
    • exportValue - Maps fields from your app to the external app format
    • defaultUnifiedValue - (for universal integrations only) Default values for unified field mapping

Output Schema

type: object
properties:
  id:
    type: string