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

How to export columns dynamically in ACC?

Avatar

Community Advisor

Hi All,

 

I have a requirement to export data dynamically in ACC. 

 

Basically i have my recipients who can attend events from 1 to 10. So i can do a campaign today with 3 incoming events or 5 events. 

My question is there a way to generate an export dynamically of the recipients info + number of events using a JS activity?

If yes, can someone provide a snippet of code?

 

Thanks

David

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

 

What are the export cols? Is it a single count, e.g. eventCount, or a set of cols per event, event1Name, event1Location?

 

Thanks,

-Jon

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi,

 

What are the export cols? Is it a single count, e.g. eventCount, or a set of cols per event, event1Name, event1Location?

 

Thanks,

-Jon

Avatar

Community Advisor
Prob easiest to write the file directly with JS then vs trying to finagle the export activity. The file writing can be moved to a csv lib so your code would just call csv = Client.CSV.new(params), csv.writeRow(array)