getICollectionRowByMarkerAndId
Get a single row from a collection.
Description
Fetches a single row by collection marker and row id, and resolves to an ICollectionRow.
.getICollectionRowByMarkerAndId(
,
,
);
Parameters schema
Schema
marker(required): string
Marker of the collection.
example: "collection1"
id(required): number
ID of the collection row.
example: 1
langCode: string
Language code. Default: the langCode passed to defineOneEntry ("en_US" if none).
example: "en_US"
Examples
Minimal example
const result = await IntegrationCollections.getICollectionRowByMarkerAndId('test_collection', 2);
Example with langCode
const result = await IntegrationCollections.getICollectionRowByMarkerAndId('test_collection', 2, 'en_US');
Example response
{
"id": 2,
"entityId": null,
"entityType": null,
"createdDate": "2025-02-25T07:05:53.057Z",
"updatedDate": "2026-10-27T09:02:08.429Z",
"formData": [
{
"marker": "name_1",
"type": "string",
"value": "Item name"
}
],
"attributeSetIdentifier": null
}
Response schema
Schema: ICollectionRow
id: number
Row ID.
example: 1
createdDate: string
Creation date of the record.
example: "2023-01-01T00:00:00Z"
updatedDate: string
Date the record was last updated.
example: "2023-01-02T00:00:00Z"
collectionId: number | null
ID of the collection the row belongs to. The row list and row-by-id endpoints do not return it.
example: 1
formData: ICollectionFormData[]
Form fields of the collection row.
example:
[
{
"marker": "name_1",
"type": "string",
"value": "Value"
}
]
formData.marker: string
Text identifier (marker) of the form field.
example: "collection_marker"
formData.type: string
Attribute type of the form field, for example string, integer or date.
example: "number"
formData.value: string | number | null
Value of the form field. Send a string; on reading, integer/float/real fields come back as a number — and as null when the stored value is not a number (the API stores "abc" in a float field as is, the SDK does not pass it on).
example: "Collection marker"
entityType: string | null
Type of the entity the collection row is linked to.
example: "product"
entityId: number | null
ID of the entity the collection row is linked to.
example: 12345
attributeSetIdentifier: string | null
Marker of the attribute set used by the form attached to the collection row, or null if there is none.
example: "attributeSet1" or null
langCode: string | null
Language code the row was stored under.
example: "en_US"
formIdentifier: string | null
Marker of the form the row was created from; returned by the update row endpoint (the create response omits it).
example: "collection_form"