Skip to main content

getICollectionRowByMarkerAndId

Getting one record from the collection.

IntegrationCollections.getICollectionRowByMarkerAndId(marker, id, langCode)

const result = await IntegrationCollections.getICollectionRowByMarkerAndId('test_collection', 1);
Schema

marker:* string
Collection text identifier
example: test_collection

id:* number
Collection record identifier
example: 1

langCode: string
Language code
example: en_US

Example return:

{
"id": 1764,
"createdDate": "2025-01-26T17:17:23.013Z",
"updatedDate": "2025-01-26T17:17:23.013Z",
"collectionId": 1,
"langCode": "en_US",
"formData": {
"en_US": [
{
"marker": "marker_1",
"type": "string",
"value": "Title"
}
]
}
}
Schema

id: number
Object identifier
example: 1764

createdDate: string($date-time)
Date of record creation in the collection

updatedDate: string($date-time)
Date of object modification

collectionId: number
Object identifier of the collection
example: 1

langCode: string
Language code in which the record in the collection was created
example: en_US

formData: FormDataLangType
Data submitted by the form attached to the collection
example:

{
"en_US": [
{
"marker": "marker_1",
"type": "string",
"value": "Title"
}
]
}