Welcome to the navigation

Incididunt ut magna quis adipisicing irure in do nisi non cillum culpa eu id est nulla officia in enim exercitation sunt laboris dolore mollit dolore. Velit aute sed fugiat nisi lorem cillum irure ut do ad minim voluptate nulla esse et id officia consectetur veniam, in incididunt laboris laborum, commodo

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