Skip to main content

CreateTargetDataModel Embeddable

The CreateTargetDataModel embeddable provides a simple, UI-driven way to create new target data models. A target data model defines the structure that your output data needs to follow so it can be successfully imported into your system.

Configure the component based on your specific use case

Add the code snippet below and insert the component on the page where you want it to appear:

Fields

accessToken

Add here your access token

configuration

The configuration determines if certain settings, such as the name of the target data model, are already set.

name

The name of the new target data model

settings

i18nOverrides

Allows you to override each text element in the interface

language

Defines the language of the flow. So far we only support English ("en")

modal

Defines whether the component is shown inline (false) or within a modal view (true)

onTargetDataModelCreate

Runs after the user has confirmed the final step of the flow to create a target data model

onClose

Runs when the user trys to close the modal by using the "X" button or clicking outside the modal

Component

<CreateTargetDataModel
accessToken=string
configuration={{
name: string, (default: null)
}}
settings={{
i18nOverrides: {},
language: "de" | "en",
modal: boolean (default: true),
}}
onTargetDataModelCreate={({data}) => {
// data: target data model object after creation
}}
onClose={() => {

}}
/>