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.