cancel
Showing results for 
Search instead for 
Did you mean: 

Use SAP Marketing Cloud Recommendations on Websites

ajl0401
Explorer

Hello, we would like to display product recommendations from SAP Marketing Cloud on a website and use this method to do so:
https://help.sap.com/docs/SAP_MARKETING_CLOUD/0f9408e4921e4ba3bb4a7a1f75f837a7/b208d7b6452440039e2c6...

However, I have a problem that I hope you can help me with:

I can get the recommendations for a specific contact via GetRecommendations.

Results:

<GetRecommendations xmlns="URL" xmlns:m="URL">
<element m:type="API_MKT_RECOMMENDATION_SRV.Recommendation">
<ResultObjectId>7073580D6EBC1B73170038421835CF4B</ResultObjectId>
<ResultObjectType>CUAN_PRODUCT</ResultObjectType>
<ResultObjectScore>1.00000</ResultObjectScore>
</element>
<element m:type="API_MKT_RECOMMENDATION_SRV.Recommendation">
<ResultObjectId>881E55C7FF1D341217003842C9DA5BF1</ResultObjectId>
<ResultObjectType>CUAN_PRODUCT</ResultObjectType>
<ResultObjectScore>0.73617</ResultObjectScore>
</element>
<element m:type="API_MKT_RECOMMENDATION_SRV.Recommendation">
<ResultObjectId>8C4553C7FF1D341217003842C9DA5BF1</ResultObjectId>
<ResultObjectType>CUAN_PRODUCT</ResultObjectType>
<ResultObjectScore>0.31221</ResultObjectScore>
</element>
<element m:type="API_MKT_RECOMMENDATION_SRV.Recommendation">
<ResultObjectId>BF9C4DC7FF1D341217003842C9DA5BF1</ResultObjectId>
<ResultObjectType>CUAN_PRODUCT</ResultObjectType>
<ResultObjectScore>0.29378</ResultObjectScore>
</element>

But now I still need the corresponding product data.

How do I get the product master data via the ResultObjectId and GetProducts?
GetProducts asks for our ProductID, but it isn't actually returned from the above response.

Thank you in advance!

Accepted Solutions (1)

Accepted Solutions (1)

ajl0401
Explorer

Nevermind I found the solution. I had to chose another Recommendation Type for the respective Recommendation Model. Once I chose the desired product origin as Recommendation Type the result was as expected.

Answers (0)