Welcome to the navigation

Non ut ea eu laboris consectetur eiusmod officia magna elit, lorem cillum nostrud irure qui fugiat minim velit ipsum sed in tempor enim sit cupidatat. Id magna eiusmod amet, aute minim sed excepteur labore nulla dolor proident, dolore quis in cupidatat elit, anim aliqua, irure voluptate laborum, incididunt sint ad

Yeah, this will be replaced... But please enjoy the search!

Deleting a Contact (Customer) from Mediachase / EPiCommerce programmatically

This is a somewhat undocumented function but if you are familiar with the class BusinessManager in the Mediachase.BusinessFoundation.Data.Business namespace things become quite easy. To demonstrate this I created a customer called Test Testson


To remove this customer contact programmatically with c# the following code is required

// Fetch the user
Mediachase.Commerce.Customers.CustomerContext customerContext = new Mediachase.Commerce.Customers.CustomerContext();
Mediachase.Commerce.Customers.CustomerContact testTestson = customerContext.GetContactById(new Guid("1c8279d8-85bd-4063-a018-a627f98c99cb"));

// Delete