Share via


GetMailingList Method

Gets a Mailing List from the system.

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function GetMailingList ( _
    listId As Guid _
) As MailingListData
'Usage
Dim instance As MarketingWebService
Dim listId As Guid
Dim returnValue As MailingListData

returnValue = instance.GetMailingList(listId)
[WebMethodAttribute]
public virtual MailingListData GetMailingList(
    Guid listId
)
[WebMethodAttribute]
public:
virtual MailingListData^ GetMailingList(
    Guid listId
)
public function GetMailingList(
    listId : Guid
) : MailingListData

Parameters

Return Value

Type: MailingListData
A MailingListData instance associated with the listId.

Exceptions

Exception Condition
NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityDoesNotExistException

No item exists with this listId.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Use this method to retrieve a specific MailingListData containing the MailingList object from the database.

You use the list to run a direct mail job to target your users more successfully.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace