getPortalForProject

Syntax

getPortalForProject(projectKey)

Description

Retrieves a portal ID by searching for the projectKey. The routine will return a null if the portal is not found.

Parameters

Parameter name

Type

Required

Description

projectKey

String

Yes

The key of the selected project.

Return type

number

Examples

number portalId = getPortalForProject("PROJECT");
 
print("Return " + portalId);

Print Return 10

See also