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 |
|---|---|---|
How to create, update, and delete external entities using Microsoft Dynamics Marketing. | Samples\CS\ExternalEntitySample | |
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 |
How to create, retrieve, update, and cancel an event attendance using Microsoft Dynamics Marketing. | Samples\CS\EventAttendanceSample | |
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 |
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 |
How to work with marketing lists via the SDK as part of the list segmentation functionality in Microsoft Dynamics Marketing. | Samples\CS\MarketingListSample | |
How to retrieve a landing page submission using Microsoft Dynamics Marketing. | Samples\CS\LandingPageSample |