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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getProjectComponentLead(pkey, compname) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the **leader** of the specified component from the specified project.

Returns the **leader** of the specified component from the specified project.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| pkey | String | Yes | Key of the selected project. |
| compname | String | Yes | Name of the component. |

## Return Type

**String**

Returns the **lead** of the specified component from the specified project.

## Example

```
//lead of the component comp1 from the project with key TSTPRJ is TL1
string leader = getProjectComponentLead("TSTPRJ", "comp1");
```

Result: TL1

## See also

> Macro (contentbylabel)