cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Extend commerce-cpi-marketing integration package

JoycaVervinckt
Active Contributor
0 Likes
788

Hi,

We're using the standard integration package between commerce & marketing.

I'm wondering how it can be extended with custom fields.

In the iflows and configuration guide we can see that pre- and post-exits are available,

But when we try sending additional data over to CPI, we immediately get this error:

"{"error":{"code":"INTERNAL_SERVER_ERROR","message":{"lang":"en","value":"Illegal argument for method call with message 'customField'."}}}

so we can't even get to the pre- or post-exit step.

So how should we then add extra fields?

Specifically, it's on an Order that we have some extra details. The customer can indicate when & where he'd like to pick up his order.

Accepted Solutions (1)

Accepted Solutions (1)

JoycaVervinckt
Active Contributor

Thank you pragnesh.mistry & colleagues for the support.

I'm updating this question here, in case anyone in the future has the same question.

The commerce-CPI connection is an OData connector.

This is different from other integration packages that I have worked with in the past. For example the C4C-CPI connector is SOAP, and ERP-CPI is IDOC.

But, because the commerce-CPI connector is OData, it is strictly bound to its defined EDMX structure.

This means that the pre- or post-exits cannot be used the way we'd use them in the c4c (soap) or erp (idoc) integrations for adding custom fields.

The only option with the commerce connector via odata is actually to make a copy of the cpi package, and make a custom development to adjust the edmx.

Kr

Joyca

0 Likes

Thanks, Joyca for providing details as per our discussion.

Best regards,

Pragnesh

Answers (0)