getCategories
Syntax

Session.getCategories(brandName [, issueName]);
Parameters
brandName string
The name of the Brand.
issueName string (Optional)
The name of the overruled Issue.
Return value Array of EntSection
Returns a list of all Categories of the provided Brand.
Description
The getCategories() method returns a list of all Categories of the provided Brand.
Examples
Get all Categories of a Brand
// Get all Categories of the Brand "WW News".
var categories = app.entSession.getCategories("WW News");
for (var i = 0; i < categories.length; i++) {
alert("Category: " + categories[i].name + " (ID: " + categories[i].id + ")");
}
Get Categories for a specific Issue
// Get the Categories available for the Issue "1st Issue" of the Brand "WW News".
var categories = app.entSession.getCategories("WW News", "1st Issue");
for (var i = 0; i < categories.length; i++) {
alert("Category: " + categories[i].name);
}
Supported versions
| Adobe Version | Supported |
|---|---|
| 2023 | ✔ |
| 2024 | ✔ |
| 2025 | ✔ |
| 2026 | ✔ |