---
title: "getProjectKeyByName"
canonical: "https://support.appfire.com/space/PSJ/15483455/getProjectKeyByName"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getProjectKeyByName(projectName) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> 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

> Macro (contentbylabel)