Skip to content
Stand with Ukraine flag

Tenant Details

Use this node to enrich messages with the originator’s tenant profile data — for example, adding the tenant’s email address to a notification message, or including the tenant’s country and city in an audit log entry. Selected details are added to message data or metadata under prefixed keys (e.g., tenant_email).

  • Select details — required. One or more tenant fields to retrieve:
DetailAdded keyDescription
IDtenant_idUnique identifier of the tenant
TITLEtenant_titleTenant name
COUNTRYtenant_countryCountry
STATEtenant_stateState or province
CITYtenant_cityCity
ZIPtenant_zipPostal/ZIP code
ADDRESStenant_addressPrimary street address
ADDRESS2tenant_address2Secondary address line
EMAILtenant_emailContact email
PHONEtenant_phoneContact phone
ADDITIONAL_INFOtenant_additionalInfoThe description field from the tenant’s additionalInfo
  • Add selected details to — required. Where to place the fetched data:
    • Message — adds to message data payload (must be a valid JSON object).
    • Metadata — adds to message metadata.
  1. Identify the tenant associated with the incoming message.
  2. Read the configured Select details list.
  3. Asynchronously retrieve each selected field from the tenant.
  4. For each fetched detail, prepend tenant_ to the detail name to form the output key (e.g., EMAILtenant_email).
  5. Skip any detail whose value is not set on the tenant.
  6. Add the resulting key-value pairs to message data or metadata based on configuration.
  7. Route via Success. If an error occurs (e.g., adding to non-JSON message data), route via Failure.
ConnectionCondition
SuccessMessage enriched with tenant details.
FailureError during processing (e.g., message data is not a JSON object when fetchTo is DATA).

Example 1 — Add tenant title and email to metadata

Section titled “Example 1 — Add tenant title and email to metadata”
{ "detailsList": ["TITLE", "EMAIL"], "fetchTo": "METADATA" }

State: tenant title is Building Corp, email is [email protected].

Outgoing metadata (added):

{ "tenant_title": "Building Corp", "tenant_email": "[email protected]" }

Example 2 — Add tenant country to message data

Section titled “Example 2 — Add tenant country to message data”
{ "detailsList": ["COUNTRY"], "fetchTo": "DATA" }

State: tenant country is Ukraine.

Outgoing data (merged): { "tenant_country": "Ukraine" }

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "TbGetTenantDetailsNodeConfiguration",
"type": "object",
"required": ["detailsList", "fetchTo"],
"additionalProperties": false,
"properties": {
"detailsList": {
"type": "array",
"items": {
"type": "string",
"enum": ["ID", "TITLE", "COUNTRY", "STATE", "CITY", "ZIP", "ADDRESS", "ADDRESS2", "EMAIL", "PHONE", "ADDITIONAL_INFO"]
}
},
"fetchTo": { "type": "string", "enum": ["DATA", "METADATA"] }
}
}