Click or drag to resize

TaxonomyTreeServicesGetCategoryAncestorIds Method


Retrieves the list of all ancestor Category Node Ids for a given Category Node

Namespace: IngeniuxCMService
Assembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.6.492
Syntax
public XHRServiceResponseGeneric<string[][]> GetCategoryAncestorIds(
	CategoryGetAncestorsPathInput data
)

Parameters

data  CategoryGetAncestorsPathInput

Object containing the current Category Node Id, and whether to return error status if Category doesn't exist.

Example
Sample JSON input
JavaScript
{
    "data": {
        "searchIds": "CategoryNodes/34",
        "alertMissingCategory": false
    }
}
Remarks
If "alertMissingCategory" is set to false, returns empty array if Category doesn't exist.

Return Value

XHRServiceResponseGenericString

Array of all ancestor Category Node Ids. Starting from the Root Category.

Example
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": [["CategoryNodes\/3", "CategoryNodes\/4", "CategoryNodes\/34"]]
}
See Also