Skip to main content

getCollection

Retrieves all dataset IDs that belong to a specific collection by calling the platform API. Returns an empty array (not an error) when the collection exists but contains no datasets.

Parameters

ParamTypeRequiredDescription
collectionIdintegerYesID of the collection to retrieve dataset IDs for

Output

FieldTypeDescription
datasetIdsinteger[]List of dataset IDs belonging to the collection
countintegerNumber of datasets found

Example

{
"id": "getCollection",
"type": "getCollection",
"data": {
"label": "Get Collection",
"isExecuted": false,
"handles": ["outputs"],
"schema": {},
"params": {
"collectionId": { "value": 7, "isExpression": false, "isAttachedToInputNode": false }
},
"inputs": [], "outputs": [], "errors": []
},
"position": { "x": 0, "y": 0 },
"isSelected": false,
"isDragging": false
}