Sample code

 

Applies To: Dynamics Marketing

The following code samples are included for Microsoft Dynamics Marketing. The sample code can be found in the following location after you download and install the Microsoft Dynamics Marketing SDK package: Samples\CS.

To know more about how to install, build, and run the sample codes, see Quick start with sample code or view the Readme file that is available with each sample code.

Sample code

Demonstrates

Folder location

Sample: Create and update external entities

How to create, update, and delete external entities using Microsoft Dynamics Marketing.

Samples\CS\ExternalEntitySample

Sample: Create, read, and update a category

How to create and update a category using Microsoft Dynamics Marketing.

Samples\CS\CategorySample

Sample: Create, read, update, and delete a company (including UDF custom fields)

How to create, retrieve, update, and delete a company using Microsoft Dynamics Marketing.

Samples\CS\CompanySample

Sample: Create, read, update, and delete contact (including custom fields)

How to create, retrieve, update, and delete a contact using Microsoft Dynamics Marketing.

Samples\CS\ContactSample

Sample: Create, read, update, and cancel event attendance

How to create, retrieve, update, and cancel an event attendance using Microsoft Dynamics Marketing.

Samples\CS\EventAttendanceSample

Sample: Create, read, update, and cancel event registration

How to create, retrieve, update, and cancel an event registration using Microsoft Dynamics Marketing.

Samples\CS\EventRegistrationSample

Sample: Create, read, update, and delete lead (including UDF custom fields)

How to create, retrieve, update, and cancel a lead using Microsoft Dynamics Marketing.

Samples\CS\LeadSample

Sample: Create, read, update, and delete marketing results

How to create, retrieve, update, and cancel a marketing results using Microsoft Dynamics Marketing.

Samples\CS\MarketingResultSample

Sample: Retrieve custom fields by Belongs-To company and entity

How to retrieve user defined fields in a company using Microsoft Dynamics Marketing.

Samples\CS\CustomFieldSample

Sample: Manage lists and send transactional or commercial email

How to send and receive transactional emails where the “Send Externally" option is selected, and send commercial email marketing messages using Microsoft Dynamics Marketing. Additionally, this sample also demonstrates how to set and retrieve contact permissions for a single or multiple email addresses, retrieve list of email addresses for which contact permissions are missing and get or set email hard bounces to be processed for a contact.

Samples\CS\EmailMessageSample

Sample: Work with marketing lists

How to work with marketing lists via the SDK as part of the list segmentation functionality in Microsoft Dynamics Marketing.

Samples\CS\MarketingListSample

Sample: Retrieve landing page submissions

How to retrieve a landing page submission using Microsoft Dynamics Marketing.

Samples\CS\LandingPageSample

See Also

Developer overview of Microsoft Dynamics Marketing
Getting started with the SDK
Quick start with sample code
Assembly included in the Microsoft Dynamics Marketing SDK
Web service and assembly reference
Programming reference for Microsoft Dynamics Marketing