The Email Composer tool allows users to send emails directly from a record entry within the system. To configure this feature, learn the steps outlined below.
1. Go to "Settings" > "System Settings".
2. Click on "Records".
3. Select an existing record to modify or "New Record" to create a new one.
4. You can put the email configuration in the Settings section.
This section provides an example configuration for setting up the ability to send emails.
The sendEmail property is a mandatory boolean that indicates whether the system can send emails.
The emailTo property is an optional object used to determine the email's recipient. It includes the following properties:
Properties
Data Type
Mandatory/Optional
Details
source
string
mandatory
The source of the recipient. It can be one of these:
field: It means the recipient's email address will be sourced directly from a specific field within the system.
linked-field: It implies that the recipient's email address will be sourced from a linked field. In this case, the system will look for an associated field that contains the email address to be used as the recipient.
value
number
mandatory
Represents the ID of the field to source the email from if the source is set to field.
Otherwise, it should be the internal ID of the select/multiselect field from which the email should be sourced.
nestedValue
string
optional
If the source is set to linked-field, this string represents the internal ID of the email field from which the email should be sourced.
If this property is omitted, the default value is set to "email," indicating that the system will attempt to source the default email address from a field with the internal ID "email".
The sourceEmailsFrom property is an optional array of objects that enhances the suggestion feature within the email tool. This feature automatically suggests email addresses sourced from the specified entries.
It includes the following properties:
Properties
Data Type
Mandatory/Optional
Details
recordInternalId
string
mandatory
The internal ID of the record from which you want to source entries.
filterSubjects
array of internalIds
mandatory
An array of internal IDs representing conditions to filter the entries and determine which email addresses should be included in the suggestion list.
emailFieldInternalId
optional
The internal ID of the email field from which you want to retrieve email addresses.
If not specified, it defaults to a predetermined email field.
nameFieldInternalId
optional
The internal ID of the name field from which you want to retrieve corresponding names for the email addresses.
If not specified, it defaults to a predetermined name field.
The associateEmailsFrom property is an optional array of objects used to import emails from associated entries. It allows you to link and retrieve email from the specified associated entries.
It includes the following properties:
Properties
Data Type
Mandatory/Optional
Details
recordInternalId
string
mandatory
The internal ID of the record from which you want to source the associated entries.
emailFieldInternalId
string
optional
The internal ID of the email field from which you want to retrieve email addresses.
nameFieldInternalId
string
mandatory
The internal ID of the associate field is used to link the parent entry with the associated entries.
"emailFromRecordEntry": {
    "sendEmail": true,
    "associateEmailsFrom" : [
        {
   "recordInternalId":"tda-timesheets",
   "emailFieldInternalId":"employee",
   "linkedFieldInternalId":"employee"
}
    ],
    "sourceEmailsFrom": [
        {
            "recordInternalId": "employees",
            "filterSubjects": ["email","name"],
            "emailFieldInternalId":"email",
            "nameFieldInternalId":"name"
        },
        {
            "recordInternalId": "neighbourhood-house-contacts",
            "filterSubjects": ["email","full-name"],
            "emailFieldInternalId":"email",
            "nameFieldInternalId":"full-name"
        }
    ],
    "emailTo": {
        "source": "field",
        "value": 7693
    }
]
}
Let's break down the configuration properties:
This line sets the sendEmail property to true, indicating that the system is enabled to send emails.
"sendEmail": true,
This will enable the email functionality.
The associateEmailsFrom property import emails from associated entries. In this example:
recordInternalId it has two associated records ("neighbourhood-house-attendances" & "neighbourhood-house-transactions") which are specified with their internal ID.
emailFieldInternalId specifies the internal ID of the field within each record.
linkedFieldInternalId specifies the internal ID of the field that links the parent entry to associated entries.
{
   "recordInternalId":"tda-timesheets",
   "emailFieldInternalId":"employee",
   "linkedFieldInternalId":"employee"
}
The imported email will appear in the "BCC" field.
The sourceEmailsFrom property offers email addresses from the specified entries. In this example:
recordInternalId it has two specified records ("employees" & "neighbourhood-house-contacts") which are specified with their internal ID.
filterSubjects is an array of internal IDs used as conditions to filter the entries ["emailFieldInternalId", "nameFieldInternalId"].
emailFieldInternalId specifies the internal ID of the email field within the record.
nameFieldInternalId specifies the internal ID of the name field within the record.
{
    "recordInternalId": "employees",
    "filterSubjects": ["email","name"],
    "emailFieldInternalId":"email",
    "nameFieldInternalId":"name"
},
{
    "recordInternalId": "neighbourhood-house-contacts",
    "filterSubjects": ["email","full-name"],
    "emailFieldInternalId":"email",
    "nameFieldInternalId":"full-name"
}
The emails from a specified record will be displayed as a dropdown menu in the "To" field.
The emailTo property specifies the source of the recipient's email address. In this example:
The source is set to "field," indicating that the recipient's email address will be sourced from a specific field.
The value is set to 12777, representing the ID of the field from which the recipient email address will be sourced.
],
"emailTo": {
    "source": "field",
    "value": 13930
}
When opening the email for the first time, the "To" field will automatically populate with the email address sourced from the specified field.