getAllOrganizationIds
Availability
This routine is available starting with SIL Engine™ 4.8.1
Syntax
getAllOrganizationIds()
Cloud Syntax
getAllOrganizationIds([projectKey])
Description
Returns the Ids of all Service Desk organizations.
Cloud Description
Returns the Ids of all Service Desk organizations or all Service Desk organizations associated to a certain service desk (each project has an associated service desk).
Cloud Parameters
Parameter | Type | Required | Description |
---|---|---|---|
projectKey | String | No | Key of the project - used to determine the service desk associated to it. |
Return type
Number []
Returns a number array of organization Ids.
Example 1
return getAllOrganizationIds();
Result: 11|12|13|14.
Example 2
for(number id in getAllOrganizationIds()) { runnerLog(getOrganizationNameById(id)); }
Result: "Company A"
"Company B"
"Company C"
Cloud Example
return getAllOrganizationIds("TJ");
Result: 1|2|3.
See also