getCategory
Syntax

Session.getCategory(brandName, categoryName [, issueName]);
Parameters
brandName string
The name of the Brand.
categoryName string
The name of the Category.
issueName string (Optional)
The name of the overruled Issue.
Return value EntSection
Returns the Category with the provided name. Throws an exception if the Category does not exist.
Description
The getCategory() method returns the Category with the provided name.
Examples
Get a specific Category
// Get the Category "Sport" from the Brand "WW News".
var category = app.entSession.getCategory("WW News", "Sport");
alert("Category ID: " + category.id + ", name: " + category.name);
Get a Category scoped to a specific Issue
// Get the Category "Sport" scoped to the Issue "1st Issue".
var category = app.entSession.getCategory("WW News", "Sport", "1st Issue");
alert("Category ID: " + category.id);
Supported versions
| Adobe Version | Supported |
|---|---|
| 2023 | ✔ |
| 2024 | ✔ |
| 2025 | ✔ |
| 2026 | ✔ |