# Add Person to Campaign

Use this action to assign a person (Lead or Contact) to an existing Campaign. If the person already exists in the Campaign, the action will return the existing Campaign Member.

You can update additional fields on the Campaign Member Record using the "Additional Campaign Member Details" section in the editor. If an existing Campaign Member is found, we will update any of the specified additional fields **only** if those fields are blank.

Pair this with [Flows: Start](https://docs.gradient.works/kb/automation-builder-kit-abk/actions/flow-lifecycle/startflowaction) to save information on newly created Campaign Member Records about the Flow. This will help track which Campaign Members were created as a result of this action which can be useful for reporting and debugging.

Use the `campaignMember` output to see details about the Campaign Member Record that was created or updated.

## Configuration

{% tabs %}
{% tab title="Flow Element" %}

<figure><img src="https://2378295204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYXbv7c6RsZzQ00WCDTM%2Fuploads%2Fgit-blob-8b973fe5c386d666ed736ae2cd670406b6ff2caa%2FAddProspectToCampaignAction.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Apex Properties" %}
These properties will be updated by the Flow element's user interface.

| Name               | Required | Type     | Description                                  |
| ------------------ | -------- | -------- | -------------------------------------------- |
| campaignId         | No       | Id       | Campaign Id to add Person to                 |
| campaignMemberData | No       | String   | Additional updates to CampaignMember         |
| campaignName       | No       | String   | Campaign Name to add Person to               |
| campaignRecord     | No       | Campaign | Campaign to add Person to                    |
| prospectId         | No       | Id       | Lead or Contact Id to assign to the Campaign |
| prospectRecord     | No       | SObject  | Lead or Contact to assign to the Campaign    |
| status             | No       | String   | Person status when added to Campaign         |
| {% endtab %}       |          |          |                                              |
| {% endtabs %}      |          |          |                                              |

## Outputs

| Name           | Type           | Description           |
| -------------- | -------------- | --------------------- |
| campaignMember | CampaignMember | CampaignMember Record |
