Skip to main content
MktgCloudUser
Level 4
Oct 26, 2019 6:49 PM UTC
Solved

Save Response Token as Profile Script

Hello,

I want to save response token data as a profile script.  My specific requirement is to save the "profile.activeActivities" as a profile script value so that I can exclude a visitor from a if they are already in a specific campaign.  Entering something like this is a Profile Script doesn't work:

return profile.activeActivities;

In fact, none of the response tokens work in Profile Scripts - all of them return null - profile.visitNum, profile.tntId, profile.marketingCloudVisitorId, etc.

These values only seem to work in Offers so are they not supported in Profile Scripts or is this some sort or bug?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Shruti_PremkumarAccepted solution
Adobe Employee
Nov 13, 2019 4:02 PM UTC

MktgCloudUser​  Could you try using user.activeActivities  ? I tested that and it works for me.

Fyi , response tokens  are not available until after the content decision is made, whereas a profile script evaluates before the content decision is made.

8 replies

MktgCloudUser
Level 4
Nov 11, 2019 4:21 PM UTC

No one from Adobe knows the answer to this??

Translate
Adobe Employee
Nov 11, 2019 8:58 PM UTC

Hi MktgCloudUser​ Response tokens functionality was meant to replace profile scripts. Hence you cannot use them inside a profile script.

Hope this helped answer your question.

Translate
MktgCloudUser
Level 4
Nov 11, 2019 10:45 PM UTC

Thanks for responding - so how can I capture and use the number activities a visitor is currently active?  Is there no alternative to profile.activeActivties that will work in a profile script?

Translate
Gaureshk_Kodag
Adobe Employee
Adobe Employee
Nov 12, 2019 7:05 AM UTC

hi MktgCloudUser​

have you tried using this audience?

This audience can be used if you want to exclude users who are already in other tests

Translate
MktgCloudUser
Level 4
Nov 12, 2019 3:38 PM UTC

Yes, I am aware of this however we need to exclude if they are part of one or more specific campaigns.  This is "any" campaign which is too broad.

Translate
Shruti_PremkumarAdobe EmployeeAccepted solution
Adobe Employee
Nov 13, 2019 4:02 PM UTC

MktgCloudUser​  Could you try using user.activeActivities  ? I tested that and it works for me.

Fyi , response tokens  are not available until after the content decision is made, whereas a profile script evaluates before the content decision is made.

Translate
MktgCloudUser
Level 4
Nov 13, 2019 5:54 PM UTC

Yep, that worked; user instead of profile.

return user.activeActivities;

returns an array of "[24756,76788,87424]"

Thanks

Translate
Adobe Employee
Nov 13, 2019 8:30 PM UTC

Great. thanks for the confirmation.

Translate