Syntax

getProjectKeyByName(projectName)

Package

Alias

Pkg Usage

Description

Retrieves the key for the project with the given name.

Retrieves the key for the project with the given name.

Parameters

Parameter name

Type

Required

Description

projectName

String

Yes

Project name.

Return Type

String

The return value is a string representing the project key.

Example

Project with key "DEMO" has the name "Demonstration Project".

return getProjectKeyByName("Demonstration Project");

Result: DEMO

See also