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

update attribute of IC from custom business object logic

ressandr
Explorer
0 Likes
472

hy Expterts,

based on this article: https://answers.sap.com/questions/662780/update-custom-field-of-interaction-contact-from-cu.html

the recommendation is to use "cl_cuan_ce_ic_root_rvw_ce". Unfortunately this is not possible due to class permission issues. Is there another way to change an attribute on an IC contact from a custom business object? I tried to use "cuan_s_q_ce_ic_root_ext" instead. But there is no option to use "id" and "idOrigin" as parameters.

Any suggestions?

Thank's and BR

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member226
Employee
Employee
0 Likes

Hello,

Looks like class cl_cuan_ce_ic_root_rvw_ce cannot be used any more. However, you can update the contact based on CBO/other business logic using BADI "Update Interaction Contact (best record)". In this BADI you can write a simple "select" statement based on the respective CDS view and change the data based on your business need.

Please have a look at https://blogs.sap.com/2019/04/05/overview-for-implementing-custom-logic-in-sap-marketing-cloud/ for more example about how to use this.

ressandr
Explorer
0 Likes

hy Saurabh,

thank you very much for your answer. But that is not exactly what I meant. I already know the blog article. There I took the example with: cuan_s_q_ce_ic_root_ext. The blog helped me implement it in a specific business context (e.g. cuan_update_ic_root), as most of the examples relate to that. But what I need to know is: - Is there a way to update a field of an IC with custom business object logic (whenever a new item in a custom business object is created)? And if yes - how cloud such an implementation this look like?

BR

Andreas

former_member226
Employee
Employee

hmmm. To be honest, I never tried to do this but I think there is no standard class that will allow you to update the Contact attributes upon the save of CBO instance.

But I just see another workaround using public API. You can try to use API_MKT_CONTACT_SRV and make a call to this using ABAP code as mentioned here: https://developers.sap.com/tutorials/abap-extensibility-cbo-execute-outbound-service.html . This ABAP code can be called via "After Modification" event in the custom BO instance. I believe that should solve your problem.

ressandr
Explorer

thank you very much. I will try it like this.

BR