Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
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



David Kangni
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

Hi Jon,
@Jonathon_wodnicki 
It's a set of cols per event

 

Thanks

David



David Kangni

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)