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 configurationcollectionKey
- Identifier of the data collection to operate oncollectionParameters
- Parameters passed to the collection methodsudm
- (for universal integrations only) Universal Data Model to write
fieldMapping
- Field mapping configurationexportValue
- Maps fields from your app to the external app formatdefaultUnifiedValue
- (for universal integrations only) Default values for unified field mapping
Output Schema
type: object
properties:
id:
type: string
Updated about 2 hours ago