Email Address Data policy | Community
Skip to main content
Level 2
April 29, 2024
Solved

Email Address Data policy

  • April 29, 2024
  • 3 replies
  • 1094 views

Hi ,

 

I'm facing an error in JavaScript activity while attempting to remove invalid email addresses from the data loading activity.

Technical workflow:

 

This is the code I used to identify invalid email addresses from the data loading activity:


The error is :



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 ParthaSarathy

Hi @dhanam1 ,

In data loading activity > click here to change the file format > See the internal name of 'email' column. 

 

If the internal name is 'email', then in JS modify the select node @email as email

Example,

var query = xtk.queryDef.create( <queryDef schema="temp:fileImport" operation="select" > <select> <node expr="email"/> </select> </queryDef> ); var record = query.ExecuteQuery(); for each (var variable in record) { vars.emailID = variable.email; logInfo("emailID: "+vars.emailID); }

 

3 replies

Adobe Employee
April 29, 2024

Hi @dhanam1 ,

In your query dataPlocy activity, you need to add the email address as Additional data.....

Thanks

Denis

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
April 29, 2024

Hi @dhanam1 ,

In data loading activity > click here to change the file format > See the internal name of 'email' column. 

 

If the internal name is 'email', then in JS modify the select node @email as email

Example,

var query = xtk.queryDef.create( <queryDef schema="temp:fileImport" operation="select" > <select> <node expr="email"/> </select> </queryDef> ); var record = query.ExecuteQuery(); for each (var variable in record) { vars.emailID = variable.email; logInfo("emailID: "+vars.emailID); }

 

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
Dhanam1Author
Level 2
May 2, 2024

Hi @parthasarathy  ,
I can retrieve both valid and invalid email addresses from the Javascript activity, but I want to separate them into different transitions—one for valid (true) and one for invalid (false)—using the Test activity.


 

CampaignerForLife
Level 5
April 30, 2024

Have you checked the definition of datapolicy? maybe the expression is "@email" or even "email"

Dhanam1Author
Level 2
April 30, 2024

the expression is "email" only.

CampaignerForLife
Level 5
April 30, 2024

Nice! So, is your problem solved already?