내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Pass multiple values in a single profile script

Avatar

Level 2

Is it possible to pass multiple values in a profile script?

 

I have 8 products for each user saved to their customer attributes. I am setting up Recommendations and need to setup the Criteria so that it shows these products in the design.

 

Using the script below as example, which returns one of the products, can I set it so that it returns all 8 in one script?

 

if (crs.get('offline customer.userid')) {

return crs.get('offline customer.prod1');

}

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee Advisor

Hi @patrickb8312284,

A profile script generally will return a single value. Though it could be some sort of concatenated string. I think your use case might be better achieved in a different way. If you are wanting Recommendations to generate the results you could try a custom criteria with a custom key. Your custom criteria file could use the visitor's id as the key and then you can list the 8 product id's you want that visitor to see (probably very similar your customer attributes files with new column names). Something like this:

7-28-2020 5-00-33 PM.png

Then you setup a custom key in Recommendations that uses the same visitor id used in your custom criteria. Be sure to set the recommendation key in your custom criteria as the new custom key. Then create an activity that uses your custom criteria and your preferred design.

Hope that helps!

-Ryan

원본 게시물의 솔루션 보기

1 답변 개

Avatar

정확한 답변 작성자:
Employee Advisor

Hi @patrickb8312284,

A profile script generally will return a single value. Though it could be some sort of concatenated string. I think your use case might be better achieved in a different way. If you are wanting Recommendations to generate the results you could try a custom criteria with a custom key. Your custom criteria file could use the visitor's id as the key and then you can list the 8 product id's you want that visitor to see (probably very similar your customer attributes files with new column names). Something like this:

7-28-2020 5-00-33 PM.png

Then you setup a custom key in Recommendations that uses the same visitor id used in your custom criteria. Be sure to set the recommendation key in your custom criteria as the new custom key. Then create an activity that uses your custom criteria and your preferred design.

Hope that helps!

-Ryan