Developer forum

Forum » Integration » Populating the ProductInfo with custom data from ERP in LiveIntegration v2

Populating the ProductInfo with custom data from ERP in LiveIntegration v2

Emil Dumitrescu
Reply

Hello,

In the LiveIntegration v2 (I've checked the source code for 2.3.0 beta 4), the object ProductInfo is not populated will all the fields that come from the ERP response, there are just some hardcoded properties (e.g. ProductId, TotalPrice, Stock etc) and the custom fields on products if the "AddProductFieldsToRequest" is set. You can check this in the ProductManager class in the ProcessResponse(XmlDocument response) method.

It means that right now the only way to populate it with some custom data that our ERP partners are sending back to us is to define for all of them custom fields on the products, and to set the "AddProductFieldsToRequest" to true in the settings. This has the downside that we are polluting the products with fields that are used only for communicating with the live integration and are not stored on products, and if we have a lot of custom fields, all of these will be sent to the ERP when making the requests.

Regards,
Emil


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Emil,
I've checked the LiveIntegration V1 history and have not found the behavior you are talking about, it has the same logic with "AddProductFieldsToRequest" property and custom fileds.
Which version of the LI v1 are you referencing? Is this is a standard version or some custom coded Live Integration solution?

If that was a custom solution then you can make the same changes in the LI v2 version.
Best regards, Dmitrij

 
Emil Dumitrescu
Reply

Hello Dmitriy,

It's the v2 of the LiveIntegration, not v1, where it is supposed that the project to be left alone and not customized (which will be standard and upgradable) and we just create a separate project with subscribers to customize the behaviour for each solution (like in your examples in Dynamicweb.Ecommerce.LiveIntegration.Examples).

Regards,

Emil

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Emil,
Correct. It looks like we need a new feature for that kind of extensibility. Could you share your source code/changeset for that functionality?
I can then look if it is possible to cope with that with our current extensibility points.
Best regards, Dmitrij
 

 

You must be logged in to post in the forum