Welcome to the navigation

Magna sed nisi lorem adipisicing ut anim ullamco excepteur dolor consectetur velit eu exercitation commodo in mollit esse elit, veniam, id irure non cillum dolore. Deserunt voluptate enim ea ut cillum minim nisi sed occaecat exercitation dolor qui ad ex quis proident, aliqua, sunt nostrud excepteur esse sit eiusmod reprehenderit

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
Please note that this portal is a BETA site , I will continuously improve all functionality and performance during the coming weeks / the author