Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Anyone using Profile Scripts with AEP Web SDK implementation?

Avatar

Level 2

I've recently been working on a new implementation of Analytics/Target via the AEP Web SDK, and am in the process of configuring some new activities.  In the past, I've used profile scripts as an easy way to handle complex audience parameters that need some sort of calculation or persistence, but I don't see anything in the documentation that addresses how to reference XDM data in the profile script editor.  Is this even an option with the Web SDK, and if so how would I reference the XDM data when building a script?

1 Accepted Solution

Avatar

Correct answer by
Level 2

Cross posting an answer from @mosesmaxen in a recent AT Community Q&A Coffee Break:

 

@wgharper - I love this question!  XDM data can be leveraged within a profile script following a similar syntax seen below.  It is very similar to referencing a Target mbox parameter within the script.  In fact, if you start typing mbox.param into the profile script UI, you should see a drop down list of all mbox params including XDM fields to select from.  

 

mbox.param('productListItems.SKU') 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 2

Cross posting an answer from @mosesmaxen in a recent AT Community Q&A Coffee Break:

 

@wgharper - I love this question!  XDM data can be leveraged within a profile script following a similar syntax seen below.  It is very similar to referencing a Target mbox parameter within the script.  In fact, if you start typing mbox.param into the profile script UI, you should see a drop down list of all mbox params including XDM fields to select from.  

 

mbox.param('productListItems.SKU') 

Avatar

Administrator

Thanks so much for cross-promoting, posting, and closing out your original question @wgharper ! 🌟🙌