{
  "boType": "MailTemplate",
  "description": "DTO (Data Transfer Object) for BO (Business Object) class 'MailTemplateBO' representing the 'Mail Template' entity",
  "friendlyName": "Template EMail",
  "kind": "SchemaRootObject",
  "name": "MailTemplateDTO",
  "properties": [
    {
      "description": "Attachments of email template",
      "elementSchema": {
        "isLogicalPrimitive": true,
        "kind": "SchemaRootObject",
        "name": "Int64",
        "underlyingType": "long",
        "underlyingTypeRef": "Int64"
      },
      "friendlyName": "Allegati",
      "isEnumerable": true,
      "kind": "SchemaArrayProperty",
      "name": "attachments",
      "underlyingName": "Attachments",
      "underlyingType": "long[]",
      "underlyingTypeRef": "Int64"
    },
    {
      "description": "The email template's body",
      "friendlyName": "Corpo della mail",
      "isLogicalPrimitive": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": false,
          "canBeRequired": true,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "name": "Body",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "body",
      "underlyingName": "Body",
      "underlyingType": "string",
      "underlyingTypeRef": "String"
    },
    {
      "description": "The email template's category",
      "foreignKey": {
        "boType": "MailCategory",
        "list": "MailCategory",
        "listDefinitionResolver": "api/latest/Lists/GetListDefinitionForMailCategory",
        "type": "IMailCategoryBO",
        "typeRef": "IMailCategoryBO"
      },
      "friendlyName": "Categoria",
      "isLogicalPrimitive": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": false,
          "canBeRequired": true,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "name": "CategoryId",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "categoryId",
      "underlyingName": "CategoryId",
      "underlyingType": "long",
      "underlyingTypeRef": "Int64"
    },
    {
      "description": "The creator of the entity",
      "foreignKey": {
        "boType": "Account",
        "type": "AccountBO",
        "typeRef": "AccountBO"
      },
      "friendlyName": "Creato da",
      "isLogicalPrimitive": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": true,
          "canBeRequired": false,
          "canWrite": false,
          "isFreeField": false,
          "isTab": false,
          "name": "CreatedById",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "createdById",
      "underlyingName": "CreatedById",
      "underlyingType": "int",
      "underlyingTypeRef": "Int32"
    },
    {
      "description": "The creation date for the entity",
      "friendlyName": "Data creazione",
      "isLogicalPrimitive": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": true,
          "canBeRequired": false,
          "canWrite": false,
          "isFreeField": false,
          "isTab": false,
          "name": "CreatedDate",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "createdDate",
      "underlyingName": "CreatedDate",
      "underlyingType": "DateTime",
      "underlyingTypeRef": "DateTime"
    },
    {
      "description": "The email template's description",
      "friendlyName": "Descrizione",
      "isLogicalPrimitive": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": false,
          "canBeRequired": true,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "name": "Description",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "description",
      "underlyingName": "Description",
      "underlyingType": "string",
      "underlyingTypeRef": "String"
    },
    {
      "description": "The external references linked to current object",
      "elementSchema": {
        "friendlyName": "ExternalReference",
        "kind": "SchemaRootObject",
        "name": "ExternalReferenceDTO",
        "properties": [
          {
            "description": "Type",
            "friendlyName": "Type",
            "isLogicalPrimitive": true,
            "kind": "SchemaObjectProperty",
            "layoutStudioPropertyAttributes": [],
            "name": "type",
            "underlyingName": "Type",
            "underlyingType": "string",
            "underlyingTypeRef": "String"
          },
          {
            "description": "Value",
            "friendlyName": "Value",
            "isLogicalPrimitive": true,
            "kind": "SchemaObjectProperty",
            "layoutStudioPropertyAttributes": [],
            "name": "value",
            "underlyingName": "Value",
            "underlyingType": "string",
            "underlyingTypeRef": "String"
          }
        ],
        "underlyingType": "ExternalReferenceDTO",
        "underlyingTypeRef": "ExternalReferenceDTO"
      },
      "friendlyName": "Campi aggiuntivi",
      "isEnumerable": true,
      "kind": "SchemaArrayProperty",
      "max": -1.0,
      "name": "externalReferences",
      "underlyingName": "ExternalReferences",
      "underlyingType": "ExternalReferencesDTO",
      "underlyingTypeRef": "ExternalReferencesDTO"
    },
    {
      "description": "The groups of the object",
      "elementSchema": {},
      "friendlyName": "Gruppi",
      "isEnumerable": true,
      "kind": "SchemaArrayProperty",
      "name": "groups",
      "underlyingName": "Groups",
      "underlyingType": "long[]",
      "underlyingTypeRef": "Int64"
    },
    {
      "description": "Id",
      "friendlyName": "Id",
      "isLogicalPrimitive": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": true,
          "canBeRequired": false,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "id",
      "underlyingName": "Id",
      "underlyingType": "long",
      "underlyingTypeRef": "Int64"
    },
    {
      "description": "If the email template is a template and is the current user default",
      "friendlyName": "Default utente corrente",
      "isLogicalPrimitive": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": false,
          "canBeRequired": true,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "name": "IsMyDefault",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "isMyDefault",
      "underlyingName": "IsMyDefault",
      "underlyingType": "bool",
      "underlyingTypeRef": "Boolean"
    },
    {
      "description": "If the email template is a template and is the system default",
      "friendlyName": "Default del sistema",
      "isLogicalPrimitive": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": false,
          "canBeRequired": true,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "name": "IsSystemDefault",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "isSystemDefault",
      "underlyingName": "IsSystemDefault",
      "underlyingType": "bool",
      "underlyingTypeRef": "Boolean"
    },
    {
      "description": "If the email template is a template",
      "friendlyName": "Template",
      "isLogicalPrimitive": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": true,
          "canBeRequired": true,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "name": "IsTemplate",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "isTemplate",
      "underlyingName": "IsTemplate",
      "underlyingType": "bool",
      "underlyingTypeRef": "Boolean"
    },
    {
      "description": "The last modified by id",
      "foreignKey": {
        "boType": "Account",
        "type": "AccountBO",
        "typeRef": "AccountBO"
      },
      "friendlyName": "Modificato da",
      "isLogicalPrimitive": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": true,
          "canBeRequired": false,
          "canWrite": false,
          "isFreeField": false,
          "isTab": false,
          "name": "LastModifiedBy",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "lastModifiedById",
      "underlyingName": "LastModifiedById",
      "underlyingType": "int",
      "underlyingTypeRef": "Int32"
    },
    {
      "description": "The last modified date",
      "friendlyName": "Data modifica",
      "isLogicalPrimitive": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": true,
          "canBeRequired": false,
          "canWrite": false,
          "isFreeField": false,
          "isTab": false,
          "name": "LastModifiedDate",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "lastModifiedDate",
      "underlyingName": "LastModifiedDate",
      "underlyingType": "DateTime",
      "underlyingTypeRef": "DateTime"
    },
    {
      "customConverterType": "WebApiStyleBasedPropertyJsonConverter",
      "description": "The mode of template",
      "friendlyName": "Corpo della mail",
      "isEnum": true,
      "isLogicalPrimitive": true,
      "isPolymorphic": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": true,
          "canBeRequired": true,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "mode",
      "polymorphicStyleParameterName": "MailTemplateModeEnumStyle",
      "polymorphicStyles": {
        "LegacyV9;AdaptiveInteger": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "Int32",
          "underlyingType": "int",
          "underlyingTypeRef": "Int32"
        },
        "WebApiV1;AdaptiveInteger": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "Int32",
          "underlyingType": "int",
          "underlyingTypeRef": "Int32"
        },
        "WebApiV1;AdaptiveString": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "String",
          "underlyingType": "string",
          "underlyingTypeRef": "String"
        }
      },
      "underlyingName": "Mode",
      "underlyingType": "MailTemplateMode",
      "underlyingTypeRef": "MailTemplateMode"
    },
    {
      "customConverterType": "WebApiStyleBasedPropertyInferentialJsonConverter",
      "description": "The owner of the entity",
      "foreignKey": {
        "boType": "Account",
        "type": "AccountBO",
        "typeRef": "AccountBO"
      },
      "friendlyName": "Proprietario",
      "isPolymorphic": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": true,
          "canBeRequired": false,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "name": "Owner",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        },
        {
          "apiAlwaysVisible": true,
          "canBeRequired": false,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "layoutName": "quote",
          "name": "OwnerId",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        },
        {
          "apiAlwaysVisible": true,
          "canBeRequired": false,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "layoutName": "event",
          "name": "OwnerId",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "ownerId",
      "polymorphicStyleParameterName": "OwnerIdStyle",
      "polymorphicStyles": {
        "LegacyV9;Id": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "Int32",
          "underlyingType": "int",
          "underlyingTypeRef": "Int32"
        },
        "WebApiV1;AdaptiveExternalReference": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "String",
          "underlyingType": "string",
          "underlyingTypeRef": "String"
        },
        "WebApiV1;AdaptiveStringOnlyUserAccount": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "String",
          "underlyingType": "string",
          "underlyingTypeRef": "String"
        },
        "WebApiV1;AdaptiveUserAccount": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "String",
          "underlyingType": "string",
          "underlyingTypeRef": "String"
        },
        "WebApiV1;FlattenedExpansion": {
          "friendlyName": "FlattenedExpansionSchema",
          "kind": "SchemaRootObject",
          "name": "FlattenedExpansionSchema",
          "properties": [
            {
              "description": "Owner Id",
              "friendlyName": "Owner Id",
              "isLogicalPrimitive": true,
              "kind": "SchemaObjectProperty",
              "layoutStudioPropertyAttributes": [],
              "name": "ownerId",
              "underlyingName": "OwnerId",
              "underlyingType": "long",
              "underlyingTypeRef": "Int64"
            },
            {
              "description": "Owner Id Friendly Name",
              "friendlyName": "Owner Id Friendly Name",
              "isLogicalPrimitive": true,
              "kind": "SchemaObjectProperty",
              "layoutStudioPropertyAttributes": [],
              "name": "ownerId_FriendlyName",
              "underlyingName": "OwnerId_FriendlyName",
              "underlyingType": "string",
              "underlyingTypeRef": "String"
            },
            {
              "description": "Owner Id User Account",
              "friendlyName": "Owner Id User Account",
              "isLogicalPrimitive": true,
              "kind": "SchemaObjectProperty",
              "layoutStudioPropertyAttributes": [],
              "name": "ownerId_UserAccount",
              "underlyingName": "OwnerId_UserAccount",
              "underlyingType": "string",
              "underlyingTypeRef": "String"
            }
          ],
          "underlyingType": "FlattenedExpansionSchema",
          "underlyingTypeRef": "FlattenedExpansionSchema"
        },
        "WebApiV1;Id": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "Int32",
          "underlyingType": "int",
          "underlyingTypeRef": "Int32"
        },
        "WebApiV1;StrictEmail": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "String",
          "underlyingType": "string",
          "underlyingTypeRef": "String"
        }
      },
      "underlyingName": "OwnerId",
      "underlyingType": "int",
      "underlyingTypeRef": "Int32"
    },
    {
      "description": "The photo of the contact",
      "friendlyName": "The photo of the contact",
      "isLogicalPrimitive": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": true,
          "canBeRequired": true,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "photoUrl",
      "underlyingName": "PhotoUrl",
      "underlyingType": "string",
      "underlyingTypeRef": "String"
    },
    {
      "description": "The email template's plain body",
      "friendlyName": "The email template's plain body",
      "isLogicalPrimitive": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": false,
          "canBeRequired": true,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "name": "Body",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "plain",
      "underlyingName": "Plain",
      "underlyingType": "string",
      "underlyingTypeRef": "String"
    },
    {
      "customConverterType": "MailTemplateStructureConverter",
      "description": "Structure",
      "friendlyName": "Structure",
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": true,
          "canBeRequired": true,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "structure",
      "properties": [
        {
          "description": "Body",
          "friendlyName": "Body",
          "kind": "SchemaObjectProperty",
          "layoutStudioPropertyAttributes": [],
          "name": "body",
          "properties": [
            {
              "description": "Component",
              "friendlyName": "Component",
              "isLogicalPrimitive": true,
              "kind": "SchemaObjectProperty",
              "layoutStudioPropertyAttributes": [],
              "name": "component",
              "underlyingName": "Component",
              "underlyingType": "string",
              "underlyingTypeRef": "String"
            },
            {
              "description": "Elements",
              "elementSchema": {
                "friendlyName": "IMailElement",
                "kind": "SchemaRootObject",
                "name": "IMailElement",
                "properties": [
                  {},
                  {
                    "description": "Id",
                    "friendlyName": "Id",
                    "isLogicalPrimitive": true,
                    "kind": "SchemaObjectProperty",
                    "layoutStudioPropertyAttributes": [],
                    "name": "id",
                    "underlyingName": "Id",
                    "underlyingType": "string",
                    "underlyingTypeRef": "String"
                  },
                  {
                    "description": "Parent",
                    "friendlyName": "Parent",
                    "kind": "SchemaObjectProperty",
                    "layoutStudioPropertyAttributes": [],
                    "name": "parent",
                    "properties": [
                      {},
                      {},
                      {},
                      {
                        "description": "Root",
                        "friendlyName": "Root",
                        "kind": "SchemaObjectProperty",
                        "layoutStudioPropertyAttributes": [],
                        "name": "root",
                        "properties": [
                          {},
                          {
                            "description": "Footer",
                            "friendlyName": "Footer",
                            "kind": "SchemaObjectProperty",
                            "layoutStudioPropertyAttributes": [],
                            "name": "footer",
                            "properties": [
                              {},
                              {},
                              {},
                              {},
                              {}
                            ],
                            "underlyingName": "Footer",
                            "underlyingType": "IMailCompositeElement",
                            "underlyingTypeRef": "IMailCompositeElement"
                          },
                          {
                            "description": "Header",
                            "friendlyName": "Header",
                            "kind": "SchemaObjectProperty",
                            "layoutStudioPropertyAttributes": [],
                            "name": "header",
                            "properties": [
                              {},
                              {},
                              {},
                              {},
                              {}
                            ],
                            "underlyingName": "Header",
                            "underlyingType": "IMailCompositeElement",
                            "underlyingTypeRef": "IMailCompositeElement"
                          }
                        ],
                        "underlyingName": "Root",
                        "underlyingType": "IMailStructure",
                        "underlyingTypeRef": "IMailStructure"
                      }
                    ],
                    "underlyingName": "Parent",
                    "underlyingType": "IMailElement",
                    "underlyingTypeRef": "IMailElement"
                  },
                  {}
                ],
                "underlyingType": "IMailElement",
                "underlyingTypeRef": "IMailElement"
              },
              "friendlyName": "Elements",
              "isEnumerable": true,
              "kind": "SchemaArrayProperty",
              "name": "elements",
              "underlyingName": "Elements",
              "underlyingType": "IList",
              "underlyingTypeRef": "IList`1"
            },
            {},
            {},
            {}
          ],
          "underlyingName": "Body",
          "underlyingType": "IMailCompositeElement",
          "underlyingTypeRef": "IMailCompositeElement"
        },
        {},
        {}
      ],
      "underlyingName": "Structure",
      "underlyingType": "IMailStructure",
      "underlyingTypeRef": "IMailStructure"
    },
    {
      "description": "The email template's subject",
      "friendlyName": "Oggetto",
      "isLogicalPrimitive": true,
      "isRequired": true,
      "kind": "SchemaObjectProperty",
      "layoutStudioPropertyAttributes": [
        {
          "apiAlwaysVisible": false,
          "canBeRequired": true,
          "canWrite": true,
          "isFreeField": false,
          "isTab": false,
          "name": "Subject",
          "typeId": "LayoutStudioPropertyAttribute",
          "useful": false
        }
      ],
      "name": "subject",
      "underlyingName": "Subject",
      "underlyingType": "string",
      "underlyingTypeRef": "String"
    },
    {
      "customConverterType": "WebApiStyleBasedPropertyInferentialJsonConverter",
      "description": "Tags",
      "friendlyName": "Tags",
      "isEnumerable": true,
      "isLogicalPrimitive": true,
      "isPolymorphic": true,
      "kind": "SchemaArrayProperty",
      "name": "tags",
      "polymorphicStyleParameterName": "TagsStyle",
      "polymorphicStyles": {
        "LegacyV9;Id": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "Int32",
          "underlyingType": "int",
          "underlyingTypeRef": "Int32"
        },
        "WebApiV1;AdaptiveCsv": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "String",
          "underlyingType": "string",
          "underlyingTypeRef": "String"
        },
        "WebApiV1;AdaptiveExternalReference": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "String",
          "underlyingType": "string",
          "underlyingTypeRef": "String"
        },
        "WebApiV1;AdaptiveName": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "String",
          "underlyingType": "string",
          "underlyingTypeRef": "String"
        },
        "WebApiV1;AdaptiveStringOnlyName": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "String",
          "underlyingType": "string",
          "underlyingTypeRef": "String"
        },
        "WebApiV1;Csv": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "String",
          "underlyingType": "string",
          "underlyingTypeRef": "String"
        },
        "WebApiV1;CsvOfIds": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "String",
          "underlyingType": "string",
          "underlyingTypeRef": "String"
        },
        "WebApiV1;CsvOfNames": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "String",
          "underlyingType": "string",
          "underlyingTypeRef": "String"
        },
        "WebApiV1;Id": {
          "isLogicalPrimitive": true,
          "kind": "SchemaRootObject",
          "name": "Int32",
          "underlyingType": "int",
          "underlyingTypeRef": "Int32"
        }
      },
      "underlyingName": "Tags",
      "underlyingType": "long[]",
      "underlyingTypeRef": "Int64"
    }
  ],
  "underlyingType": "MailTemplateDTO",
  "underlyingTypeRef": "MailTemplateDTO"
}