getSections
Syntax

Session.getSections(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 Sections of the provided Brand.
Description
The getSections() method returns a list of all Sections of the provided Brand as defined on Studio Server. It is an alias for getCategories().
Examples
Get all Sections of a Brand
// Get all Sections of the Brand "WW News".
var sections = app.entSession.getSections("WW News");
for (var i = 0; i < sections.length; i++) {
alert("Section: " + sections[i].name + " (ID: " + sections[i].id + ")");
}
Get Sections for a specific Issue
// Get the Sections available for the Issue "1st Issue" of the Brand "WW News".
var sections = app.entSession.getSections("WW News", "1st Issue");
for (var i = 0; i < sections.length; i++) {
alert("Section: " + sections[i].name);
}
Supported versions
| Adobe Version | Supported |
|---|---|
| 2023 | ✔ |
| 2024 | ✔ |
| 2025 | ✔ |
| 2026 | ✔ |