Can we pass multiple values as mbox parameter? | Community
Skip to main content
Khushboo_Kalia
Employee
March 2, 2022
Solved

Can we pass multiple values as mbox parameter?

  • March 2, 2022
  • 2 replies
  • 1589 views

Hi there,

we are trying to pass multiple values as array list in the mbox parameter for recommendations (example in the screenshot below). Based on these parameter values, we want to create an exclusion such as mbox.prohibitedTypes - "itemType is not contained in list". Can someone please confirm if these normal parameters will be accepted by recs.

We need list on both the sides -

Here is an example of the use case -

Thanks!

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by evidana

If you are trying to exclude certain ids from showing up, then Recommendations has a param that is built for that:

 

function targetPageParams() {
   return {
      "excludedIds": ["352", "223", "23432", "432", "553"]
      }
}

 

https://experienceleague.adobe.com/docs/target/using/recommendations/plan-implement.html?lang=en 

 

For your particular question, I don't think you need to stringify the param value since Adobe will be expecting a list (array) on both the left (param) and right (item catalog column) side. 

 

I have found that Adobe Target Recommendations is much easier to troubleshoot by generating a debug token from the Administration / Implementation interface. 

2 replies

Perrin_Ennen
New Participant
March 10, 2022

You can map such a validation via a ProfileScript. There you can create more complex queries and finally return true or false. Maybe this will help you.

I myself would not need a list on either side. At least, I can't think of any current case - and if so, only with some special exceptions, where a list on the left and right would not be sufficient.

 

Best regards

evidanaAccepted solution
New Participant
March 8, 2022

If you are trying to exclude certain ids from showing up, then Recommendations has a param that is built for that:

 

function targetPageParams() {
   return {
      "excludedIds": ["352", "223", "23432", "432", "553"]
      }
}

 

https://experienceleague.adobe.com/docs/target/using/recommendations/plan-implement.html?lang=en 

 

For your particular question, I don't think you need to stringify the param value since Adobe will be expecting a list (array) on both the left (param) and right (item catalog column) side. 

 

I have found that Adobe Target Recommendations is much easier to troubleshoot by generating a debug token from the Administration / Implementation interface.