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

SAP Marketing Cloud: Call API after permission change

hackbu
Participant
1,236

I have some requirement to call custom logic in the SAP Marketing Cloud. We trigger the Double Opt-In process for email communication. There we have some use cases where we want to inform other systems about changes in regards to permission / interactions:

  • Double Opt-In process started: When the confirmation email is sent to the customer I would like to call the custom logic
  • Email permission confirmed: When the contact confirms (Opt-In) by clicking the link in the confirmation mail, I also would like to inform the other systems
  • Permission cancelled: When the customer revokes the email permission (Opt-Out), the custom logic should also be called

Is there any way to achieve this?

I already checked if there is some enhancement option in the "Custom Fields and Logic" app. For interactions I couldn't find anything suitable but how about that? Can this maybe help?

badi-create-and-update-permissions.png

Accepted Solutions (1)

Accepted Solutions (1)

CagriSenol
Participant

I would suggest to use 3 different trigger based campaigns which are listening the regarding interactions. Then I'd create either one combined or three different open channels and hand over the information to the CPI. Finally you could implement your logic in the CPI and call the relative systems to inform them.

hackbu
Participant
0 Likes

Hey cagreply,

that sounds like an idea. I'll check that!
Do you have some more information in regards to those channels?

BR
Christian

CagriSenol
Participant

Hi Christian,

Please have a look into the link which Tobias shared in previous comment. In case you need any other support, please feel free to ask in community again.

Regards,

Cagri

hackbu
Participant
0 Likes

Hey cagreply,

Do you know where I can make the interactions (e.g. pre opt-in) available as campaign trigger?
For now there are only few standard ones defined and I could not find any info about how to add new ones.

BR
Christian

CagriSenol
Participant

Hi Christian,

You should able to see "Add" button on the right top.

Then you should add any interactions you'd like to trigger.

Regards,

Cagri

Answers (2)

Answers (2)

SCHNEIDERT
Active Contributor

Hi Christian,

never done this, but I think you can try using Business Event Handling. Check this blog from Josef Ehbauer and the mentioned articles there.

Maybe he is the right person if there are further questions regarding that interesting topic.

BR Tobias

hackbu
Participant
0 Likes

Hey schneidert,

thanks for the feedback. I'll have a look on the business event handling topic. I also updated my questions. Do you know if there is also some custom logic option which would help?

BR
Christian

SCHNEIDERT
Active Contributor

Hi hackbu,

unfortunately I'm not a developer and think this BAdI has to be checked by someone who knows what can be done with it. But at the moment I'm not aware of a possibility to achieve that what you're trying to do via Custom Logic...

With the new information provided in your question I would also try to go for Cagris approach. Here you can find the information regarding Open Channel Integration. There are five BAdIs which you could check and implement according to your needs.

hackbu
Participant
0 Likes

Hey schneidert,

thanks a lot. I'll try to implement this approach.

Do you know where I can make the interactions (e.g. pre opt-in) available as campaign trigger?
For now there are only few standard ones defined and I could not find any info about how to add new ones.


BR
Christian

SCHNEIDERT
Active Contributor

Hi hackbu,

in Testsystem you should have the possibility to add new triggers in the upper right.

If you don't see this I would as a first step clear the browser cache.

I just checked but saw that there's no option to add the Pre-Opt-in... Maybe that's because the interaction type is marked as "Technical". You have to try that.

BR Tobias

hackbu
Participant
0 Likes

Hey schneidert,

thanks. I just didn't see the "Add" button...

So I added all three interaction typs (pre opt-in, opt-in, opt-out) as trigger.
When I create a trigger-based campaign now I have the following trigger types available:

I compared it with the triggers which are customized.
"Marketer-Initiated" must be the pre opt-in interaction...
Do you have any information about that "to be deprecated" note?

BR
Christian

SCHNEIDERT
Active Contributor
0 Likes
manuel_seeger
Explorer
0 Likes

We have the same use case (actually exactly the same - notify 3rd party systems on subscription / permission change).

The way to go is business event handling. Marketing cloud can send events for changes on these interactions to SAP event mesh. You can then subscribe any consumer either directly or subscribe a processor which does additional transformation etc on the received event.

Unfortunately SAP's documentation is ... lacking. It takes a few steps to piece it all together and the documentation is anything but straightforward. Get started here:

https://help.sap.com/docs/SAP_MARKETING_CLOUD/0f9408e4921e4ba3bb4a7a1f75f837a7/634656d826214754941e6...