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

How to retrieve Contact information via sap-outbound-id?

chrigu1
Participant
0 Likes
1,447

Hi everyone,

does anyone know if it is possible to retrieve contact information from SAP Marketing Cloud with only the sap-outbound-id as an input parameter (e.g. via API_MKT_CONTACT_SRV)?

I'd like to like to retrieve the address information from a contact that has clicked on a campaign link. At this point, the only information I have is the sap-outbound-id.

Anyone had experience with is scenario before? The only similar question I could find to this was this, which wasn't really answered.

Thanks, Christopher.

Accepted Solutions (1)

Accepted Solutions (1)

chrigu1
Participant

Hi Tobias,

thanks a lot for your answer! I have focused too much on the InteractionUUID, not noticing, that the sap-outbound-id is being written into InteractionSourceObject. So using the API_MKT_CONTACT_SRV works perfectly! Though I have decided to look for InteractionType EMAIL_OUTBOUND as it can't be guaranteed, that the CLICK_THROUGH is already processed in the system the moment I want to retrieve it from an external system.

For anyone who might come across this question in the future, here the sample GET request:

https://{{mkt_host}}/sap/opu/odata/sap/API_MKT_INTERACTION_SRV/Interactions?$top=1&$format=json&$fil... eq 'EMAIL_OUTBOUND') and (InteractionSourceObject eq '49EE98941E3EF18F5F6C27BB4F4EC2906DC6FBD3'))

where 49EE98941E3EF18F5F6C27BB4F4EC2906DC6FBD3 is the sap-outbound-id

Form the result I can extract the InteractionContactUUID and send another request to API_MKT_CONTACT to retrieve e.g. address information, geolocation, etc.

Regards Christopher.

SCHNEIDERT
Active Contributor
0 Likes

Hi Christopher,

I'm glad to hear that my approach helped you 🙂

Kind Regards Tobias

Answers (1)

Answers (1)

SCHNEIDERT
Active Contributor

Hi Christopher,

what about using the API_MKT_INTERACTION_SRV? There you can find the sap-outbound-id in the interaction (e.g. CLICK_THROUGH) as InteractionSourceObject and you have also e.g. the email-address as InteractionContactId.

Using the email Address you can then retrieve all the other data via API_MKT_CONTACT_SRV.

BR Tobias