Search K
Appearance
Appearance
The Get Mesh Record node is used to retrieve a specific record from an Elastic Search index using its Record Id
. It is typically used in workflows that require fetching structured data from the Mesh system for further processing.
This node connects to the configured Elastic Search service and retrieves a document based on its ID. The document data is returned as a variable, making it available for use in downstream nodes.
Label | Type | Description | Required | Example |
---|---|---|---|---|
Record Id | Text | The unique identifier of the record to fetch | ✅ | abc123-record |
This node stores the result in a variable called RecordData
.
Output Variable | Description |
---|---|
RecordData | The raw JSON document returned from Elastic Search, containing the matching record data. |
Elastic Search
._all
index using the given Record Id
.RecordData
in the workflow's data dictionary and marks the task as successful.Note: While the class contains a method
AuthenticateMesh
, it is not used during execution of this task. Authentication with Elastic Search is handled via the service token (GetServiceAccountAsync("Elastic Search")
).
You can use GetMeshRecord
at the beginning of a workflow to extract metadata or configuration stored in Elastic Search and then pass it to other nodes like document generation or conditional logic processors.
Condition | Status | Message |
---|---|---|
Record Id is missing or empty | Fail | Required Parameters not found |
Elastic Search token retrieval fails | Fail | Failed to Execute |
Record not found in Elastic Search | Fail | Failed to get Record |
Multiple or zero hits returned by search | Fail | Unable to get Record by id |