---
schema_version: "1"
id: fcd6cb05edd32dd5ca230ed89a09f79580f66aef7019f3e688f997d5578da572
title: AddMscrmListMember()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/ampscript/references/microsoft-dynamics-crm/mc-ampscript-reference-microsoft-dynamics-crm-add-list-member.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-mscrm/mc-ampscript-reference-microsoft-dynamics-crm-add-list-member.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: cedde1b3551b53822a35347514e1270be11398fc5eb96506b8d6644522e175b2
products:
  - AMPscript for Marketing Cloud
  - Marketing Cloud
---
# AddMscrmListMember()

Adds a record—such as a lead, contact, or account—to a Microsoft Dynamics CRM marketing list.

## Availability

<table>
  <tr>
    <td>Marketing Cloud Engagement</td>
    <td>✅ Yes</td>
  </tr>
  <tr>
    <td>Marketing Cloud Next</td>
    <td>❌ No</td>
  </tr>
</table>

## Syntax

```
AddMscrmListMember(recordGuid, listGuid)
```

The `AddMscrmListMember()` function has two parameters:

- `recordGuid` (string): Required. The GUID of the record that you want to add to the marketing list.
- `listGuid` (string): Required. The GUID of the marketing list that you want to add the record to.

## Usage

To use the function, pass it the GUID of the record that you want to add, and the GUID of the marketing list to add the record to.

This example adds a lead, contact, or account to a marketing list.

<!-- The GUIDs used in this example are randomly generated and do not represent a security risk. -->

```
%%[
  Var @guid, @list_guid
  Set @guid = '58318475-9054-41e0-8b07-b66cedef9e72'
  Set @list_guid = '1ba5b049-e65f-4576-b8c7-78fbcd9124eb'
  AddMscrmListMember(@guid, @list_guid)
]%%
```

The function doesn’t return a value.
