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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admAppendProjectToCustomFieldConfigurationScheme(fieldName, existingProjectKey, projectKeyToAppend, ignoreExistingContextScheme) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | appendPrjToCFConfigScheme(fieldName, existingProjectKey, projectKeyToAppend, ignoreExistingContextScheme) |

## Description

> Macro (excerpt)
> 
> Appends a project to an existing Configuration Scheme of a Custom field for a given project.

Appends a project to an existing Configuration Scheme of a Custom field for a given project. The given project should already have a configuration. The project key to be appended should not belong to any config for that field.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| fieldName | String | Yes | Name custom field id that has a field configuration. |
| existingProjectKey | String | Yes | The project that appears in one of the the custom field configurations, for the given custom field. |
| projectKeyToAppend | String | Yes | The project that does not appear in any configuration for the given custom field, and will be appended to the configuration where the **existingProjectKey** appears. |
| ignoreExistingContextScheme | Boolean (true/false) | Yes | If this flag is set to false, and there is already a configuration for the given custom field/project pair, the project will not be added to the config for the **existingProjectKey**. If this flag is set to true, and a configuration for the project already exists, the project will be moved from it's current scheme to the **existingProjectKey** config scheme.  
NOTE: the current scheme can also be the global context scheme. |

## Return Type

**Boolean (true/false)**

Returns 'true' if the project was added to the list of projects in the field configuration that already contains the **existingProjectKey**.

## Example

The following line of code will add (append) project "PRJ2" to the custom field configuration for the "CF_CASCADE" field that contains the "PRJ1" project key.

```
admAppendProjectToCustomFieldConfigurationScheme("CF_CASCADE", "PRJ1", "PRJ2", true);
```

## See also

> Macro (contentbylabel)