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

C4M - Outbound contact integration

tomvanrooijen
Participant
0 Likes
793

Hi all,

Does C4M have the possibility to trigger a CPI integration every time a contact sheet is updated?


I know about the API_MKT_CONTACT_SRV api in SAP_COM_0207 but that is an inbound integration. I need an outbound trigger.


Thanks and regards,

Tom

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member226
Employee
Employee

Hi,

For such outbound cases, you can think of using the Marketing "Business Event" framework which allows you to communicate with the external systems by the means of asynchronous events. Here you would be communicating with SAP Event Mesh(aka enterprise messaging) service on BTP. For a detailed step-by-step tutorial, please check https://blogs.sap.com/2020/09/30/use-sap-cloud-platform-kyma-runtime-to-extend-sap-marketing-cloud/. It explains everything that you need to take care of but keep in mind that you need to procure Kyma or supporting services license.

For more details please check https://help.sap.com/viewer/0f9408e4921e4ba3bb4a7a1f75f837a7/LATEST/en-US/3fb8916e62c54b35bab5801199...

CagriSenol
Participant
0 Likes

Hi t.vanrooijen ,

May I kindly ask what is the user story behind of it?

Regards,

Cagri

tomvanrooijen
Participant
0 Likes

Hi Cagri,

The requirement is to update two fields in C4M contact, department and function.
This is not possible in C4M and should either be done in the system where the contact originates or via the api API_MKT_CONTACT_SRV.

It is not possible for us to update these fields in the original system so we need to find another way to update these fields.

A small application extension that calls the API_MKT_CONTACT_SRV is a possibility but not really the way we want to go.

Another possibility could be to define two custom dummy fields in the contact which if pushed to CPI could call the API_MKT_CONTACT_SRV api which fills the department & function fields with the contents of the dummy fields and subsequently updates the contact.
For this to work C4M must trigger some sort of a contact integration when saving the contact.

So that is the reason why I am looking for an outbound contact integration, it is to work around the limitation of C4M to update certain contact fields.

Regards

Tom

former_member226
Employee
Employee

Hi Tom,

For such a use case, why are you triggering an outbound call to CPI and then updating it via API_MKT_CONTACT_SRV? You can simply create 2 custom fields and copy their values to standard Department/Function using BADI "Update Interaction Contact (best record)". Have you tried this option?

tomvanrooijen
Participant
0 Likes

Hi Saurabh,

No I haven't tried it because I did not know it existed..As an integration consultant I was not aware of this BADI

But how would that work in practice, once you have the dummy fields and created an extension with Abap for key users, at what moment would the fields get updated? At a save of the contact or do you have to trigger the extension in some way?


Thanks,

Tom

CagriSenol
Participant

Hi again,

1-) Does the original System is an SAP system?

2-) if #1 is yes then How do you replicate the original data (without Department & Function?)? Is it by a standard iflow in standard integration packages in CPI?

If both questions are yes ; and if it is not possible to maintain those fields in the original system, then I would add a logic to the extension (Post Exit) of the standard iflow. Please confirm if this is the case, afterwards I can propose some details about what & how to do it.

But if at least one of them is No then I also suggest the Badi that saurabh.kabra mentioned.

ps: Regarding your question to him, it will be updated during the time contact is saved.

Regards,

Cagri