The ud variable describes the current unstructured document. It is only available in the Viewer page designer.
The structure of ud is as follows:
{
"type": "UNSTRUCTURED_DOCUMENT",
"id": "gsHgq~embEA~MlOr7OK3mA",
"lang": "en-US",
"title": "Fluid Topics Training Catalog",
"metadata": [
{
"key": "Category",
"label": "Category",
"values": [
"Training"
]
},
{
"key": "Product",
"label": "Product",
"values": [
"Fluid Topics"
]
},
{
"key": "Version_FT",
"label": "Version",
"values": [
"Latest"
]
},
{
"key": "ud:id",
"label": "ud:id",
"values": [
"documents/ud-01.pdf.document"
]
},
{
"key": "sourceId_custom",
"label": "sourceId_custom",
"values": [
"ud_training"
]
},
{
"key": "ft:publicationId",
"label": "ft:publicationId",
"values": [
"gsHgq~embEA~MlOr7OK3mA"
]
},
{
"key": "ft:title",
"label": "ft:title",
"values": [
"Fluid Topics Training Catalog"
]
},
{
"key": "ft:publication_title",
"label": "ft:publication_title",
"values": [
"Fluid Topics Training Catalog"
]
},
{
"key": "ft:openMode",
"label": "ft:openMode",
"values": [
"FLUIDTOPICS"
]
},
{
"key": "ft:lastEdition",
"label": "ft:lastEdition",
"values": [
"2026-06-24"
]
},
{
"key": "ft:isPublication",
"label": "ft:isPublication",
"values": [
"true"
]
},
{
"key": "ft:isUnstructured",
"label": "ft:isUnstructured",
"values": [
"true"
]
},
{
"key": "ft:isArticle",
"label": "ft:isArticle",
"values": [
"false"
]
},
{
"key": "ft:isBook",
"label": "ft:isBook",
"values": [
"false"
]
},
{
"key": "ft:structure",
"label": "ft:structure",
"values": [
"unstructured"
]
},
{
"key": "ft:document_type",
"label": "ft:document_type",
"values": [
"document"
]
},
{
"key": "ft:mimeType",
"label": "ft:mimeType",
"values": [
"application/pdf"
]
},
{
"key": "ft:locale",
"label": "ft:locale",
"values": [
"en-US"
]
},
{
"key": "ft:originId",
"label": "ft:originId",
"values": [
"documents/ud-01.pdf.document"
]
},
{
"key": "ft:baseId",
"label": "ft:baseId",
"values": [
"documents/ud-01.pdf.document"
]
},
{
"key": "ft:clusterId",
"label": "ft:clusterId",
"values": [
"documents/ud-01.pdf.document"
]
},
{
"key": "ft:lastPublication",
"label": "ft:lastPublication",
"values": [
"2026-06-24T19:03:35.842000"
]
},
{
"key": "ft:khubVersion",
"label": "ft:khubVersion",
"values": [
"5.1.26"
]
},
{
"key": "ft:prettyUrl",
"label": "ft:prettyUrl",
"values": [
"Training/Fluid-Topics-Training-Catalog"
]
},
{
"key": "ft:sourceId",
"label": "ft:sourceId",
"values": [
"ud_training"
]
},
{
"key": "ft:sourceName",
"label": "Source Name",
"values": [
"UD training"
]
},
{
"key": "ft:sourceType",
"label": "ft:sourceType",
"values": [
"UnstructuredDocuments"
]
},
{
"key": "ft:sourceCategory",
"label": "ft:sourceCategory",
"values": [
""
]
},
{
"key": "ft:outputSize",
"label": "ft:outputSize",
"values": [
"282767"
]
},
{
"key": "ft:contentSize",
"label": "ft:contentSize",
"values": [
"277283"
]
},
{
"key": "ft:publishStatus",
"label": "ft:publishStatus",
"values": [
"visible"
]
}
],
"portalUrl": "/v/u/Training/Fluid-Topics-Training-Catalog"
}
| Field | Type | Description |
|---|---|---|
type |
String | The type of publication, always UNSTRUCTURED_DOCUMENT in this case. |
id |
String | The unique ID of the unstructured document. |
lang |
String | The locale of the unstructured document. |
title |
String | The title of the unstructured document. |
metadata |
Array | An array containing the unstructured document's metadata. |
key |
String | The metadata's key. |
values |
Array | The values defined for the metadata key. |
label |
String | The label defined for the metadata. |
portalUrl |
String | The public link to the unstructured document. |
To see the content of the ud variable in the browser console, enter the following in the JavaScript section of a Custom component, then select Run:
console.log(JSON.stringify(ud, null, 2));