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

> Macro (button-handy)



> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | admAddProjectComponent(pkey, compname, compdesc, complead, defassignee) | **Package** | adm |
> | **Alias** |  | **Pkg Usage** | addComponent(pkey, compname, compdesc, complead, defassignee) |

## Description

> Macro (excerpt)
> 
> Adds a component in the project.

Adds a component in the project.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | pkey | String | Yes | Project key. |
> | compname | String | Yes | Component name. |
> | compdesc | String | Yes | Description. |
> | complead | String | Yes | Component lead. |
> | defassignee | number | Yes | Possible values and their respective effects: 0 - project default; 1 - component lead; 2 - project lead; any other value - unassigned. |

## Return Type

**Boolean (true/false)**

Returns true if the component was added and false otherwise.

## See also

> Macro (contentbylabel)