AddMscrmListMember()

Adds a record—such as a lead, contact, or account—to a Microsoft Dynamics CRM marketing list.

Availability 

Marketing Cloud Engagement ✅ Yes
Marketing Cloud Next ❌ No

Syntax 

1AddMscrmListMember(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.

1%%[
2  Var @guid, @list_guid
3  Set @guid = '58318475-9054-41e0-8b07-b66cedef9e72'
4  Set @list_guid = '1ba5b049-e65f-4576-b8c7-78fbcd9124eb'
5  AddMscrmListMember(@guid, @list_guid)
6]%%

The function doesn’t return a value.