Skip to end of banner
Go to start of banner

getAllOrganizationIds

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

projectKeyStringNoKey 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

  • No labels