Episerver Commerce CustomerContact Events - Quan Mai's blog (vimvq1987.com)
this is probably what you need
Hi Quan Mai,
This might be a stupid question, but where should Configs\baf.data.manager.config be located? Is this some old configuration from Commerce 13?
The settings were moved to Mediachase.BusinessFoundation.Data.Business.Configuration.BusinessManagerOptions (optimizely.com)
so they are now part of appSettings.json (and in JSON format of course). you can also add one like this
services.Configure<BusinessManagerOptions>(options =>
{
options.Plugins.Add(
new RequestPlugin()
{
MetaClass = "List",
Method = "CustomPage",
EventStage = EventPipeLineStage.PostMainOperationInsideTranasaction,
TypeName = "Mediachase.Commerce.Customization.Plugins.CustomPageNormalizationPlugin, Mediachase.Commerce"
});
});
Hi Quan Mai,
Thanks for the info. Could you clarify how we would implement this? I expect that we create a class like public class CustomerContactHandler : IPlugin from your blog. But how do we configure commerce to use the CustomerContactHandler? Is it the MetaClass or Method or TypeName fields in the RequestPlugin? I can't figure out what the values are supposed to be of those.
I appreciate your guidance on how to set this up.
Hi,
Is there a way to subscribe to updates on contact creation and changes? We need to synchronize new contacts and changes to another system realtime, but I haven't found any documentation on such mechanism as of yet.