Mappings are an optional set of rules that remap what gets copied and synchronized from source to target.

Each rule pairs a specific source item with its desired target. Anything not explicitly listed in the mapping is copied and synchronized unchanged (1:1).

Minimal JSON

{
  "fromKey": "",
  "toKey": ""
}
PropertyDescriptionValuesMandatory
fromKey Key of the original attribute type from which the value is copied.stringYes
toKey Key of the new attribute type.stringYes
clearEmbeddedTexts Determines whether embedded texts are saved as static text.booleanNo

objectTypeMappings

Example JSON

{
  "key": "cust_syncDataAutomation",
  "type": "syncData",
  "targetApplicationKey": "cust_exampleApp",
  "targetSpacePath": "Personal/Knowledge Base",
  "objectTypeMappings": [
    {
      "fromKey": "core_documentation_document",
      "toKey": "cust_exampleApp_objectType"
    }

}
PropertyDescriptionValuesMandatory
fromKey Key of the original object type.stringYes
toKey Key of the new object type.stringYes

relationTypeMappings

Example JSON

{
  "key": "cust_syncDataAutomation",
  "type": "syncData",
  "targetApplicationKey": "cust_exampleApp",
  "targetSpacePath": "Personal/Knowledge Base",
  "relationTypeMappings": [
    {
      "fromKey": "core_isParentOf",
      "toKey": "cust_exampleApp_contains",
      "toAttributeKey": "core_description"
    }

}
PropertyDescriptionValuesMandatory
fromKey Key of the original relation type from which the value is copied.stringYes
toKey Key of the new relation type. To not include this relation during sync, use null.stringYes
toAttributeKey Key of the attribute type that will contain the ID of the target object in the relation.stringNo

userRelationTypeMappings

Example JSON

{
  "key": "cust_syncDataAutomation",
  "type": "syncData",
  "targetApplicationKey": "cust_exampleApp",
  "targetSpacePath": "Personal/Knowledge Base",
  "userRelationTypeMappings": [
    {
      "fromKey": "core_business_owner",
      "toKey": "cust_exampleApp_businessOwner",
      "toAttributeKey": "core_description",
      "toAttributeKeyValueType": "email"
    }

}
PropertyDescriptionValuesMandatory
fromKey Key of the source user relation type from which the value is copied.stringYes
toKey Key of the new user relation type. To not include this user relation during sync, use null.stringYes
toAttributeKey Key of the attribute type that will contain information about the user from the user relation.stringNo
toAttributeKeyValueType Type of the value inserted into the attribute. See all supported values. This property is mandatory when toAttributeKey is defined.stringYes (when toAttributeKey is defined)

To attribute key supported values

Supported values of the toAttributeKeyValueType property are the following:

  • login: Username of the user.
  • email: Email address of the user.
  • name: Name of the user as set in Dawiso.
  • id: ID of the user.

workflowStateMappings

Example JSON

{
  "key": "cust_syncDataAutomation",
  "type": "syncData",
  "targetApplicationKey": "cust_exampleApp",
  "targetSpacePath": "Personal/Knowledge Base",
  "workflowStateMappings": [
    {
      "fromKey": "core_draft",
      "toKey": "core_approved"
    }

}
PropertyDescriptionValuesMandatory
fromKey Key of the original workflow type.stringYes
toKey Key of the new workflow type.stringYes