Expand my Community achievements bar.

SOLVED

using profile parameter in javascript node

Avatar

Level 8

I need to use in js node some parameter from profiles. These profiles were chosen during the segmentation node (for example Read List). How to do that?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 4

You can use the queryDef() function within your JS script to access things! 

https://www.martechnotes.com/master-querydef-in-adobe-campaign/

 

Where they talk about picking a schema, you can just designate that you're using the temporary table created within your workflow by using vars.targetSchema, eg: 

<queryDef schema={vars.targetSchema} operation="select">

 

You just need to find out the field names to populate your query, and then you have a huge XML object which you can iterate through to work with the recipient values.  

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

You can use the queryDef() function within your JS script to access things! 

https://www.martechnotes.com/master-querydef-in-adobe-campaign/

 

Where they talk about picking a schema, you can just designate that you're using the temporary table created within your workflow by using vars.targetSchema, eg: 

<queryDef schema={vars.targetSchema} operation="select">

 

You just need to find out the field names to populate your query, and then you have a huge XML object which you can iterate through to work with the recipient values.