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

How return all interest assigned to specific interaction in SAP Marketing Cloud

valentinamed
Participant
0 Likes
454

Hi Experts,

Does somebody know how to specify GET request in order to return all interest added for specific interaction?

Regrads,

Valentina

Accepted Solutions (1)

Accepted Solutions (1)

SCHNEIDERT
Active Contributor
0 Likes

Hi Valentina,

try this:

https://my123456-api.s4hana.ondemand.com/sap/opu/odata/sap/API_MKT_INTERACTION_SRV/Interactions(guid'EnterTheInteractionGUIDhere')/InteractionInterests?$top=XYZ (enter your tenant ID, the interaction guid and a number for the top parameter)

Hope that's what you're looking for.

Best regards

Tobias

Answers (1)

Answers (1)

valentinamed
Participant
0 Likes

Hi,

Thanks I've already tried with this, for example: https://my12345-api.s4hana.ondemand.com/sap/opu/odata/sap/API_MKT_INTERACTION_SRV/Interactions(guid'WEBSITE_REGISTRATION')/InteractionInterests?$top=10

What I got as response is bad request even API works (first I tried to return x- csrf token and I got it).

Where I'm not sure is do I have to specify heders in this request, in my case I've just provided basic authorization.

KR,

Valentina

vervinckt_joyca
Active Contributor

Hi Valentina,

WEBSITE_REGISTRATION is an interaction type, not an interaction guid.

You can find back an interaction guid, by going to your contact Profile, on the Interactions tab, and clicking the tree dots in the bottom right corner of a specific interaction.

You'll get to another screen called "Interaction Data" and in the page at the top you'll find the guid of that interaction, it looks like this:

f0071ad0-fb75-078d-1600-410065a88956

Kr

Joyca