-
Notifications
You must be signed in to change notification settings - Fork 40
Description
I am trying to add a contact to a marketing list using the contact GUID.
I am able to get a list object from CRM using he following code:
$list = $service->entity( 'list', $listguid ); where $listguid is the guid of the marketing list I want to work with
but I'm not sure if this is the right approach. I suspect this only allows me to manipulate the list itself as opposed to adding contacts to it.
Can i use the AddListMembersListRequest function which looks to take a listguid and conatct guids as parameters? The problem is that I have no idea how to call a function like this using the php toolkit
I'd appreciate any advice on how to approach this problem.
I'm wondering if the executeAction method might be the way to go? Somethng like:
$result = $service->executeAction('AddListMembersList' $listguid ,$memberid); (which doesn't work as I've written it but somehow seems close).
Cheers,
Bill