Generate a file and download it in local PC in a Campaign Workflow

Avatar

Avatar
Validate 25
Level 4
salvdangelo
Level 4

Likes

45 likes

Total Posts

130 posts

Correct reply

4 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 4
salvdangelo
Level 4

Likes

45 likes

Total Posts

130 posts

Correct reply

4 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
salvdangelo
Level 4

01-02-2019

Hello,

I ask you how it is possible to create and save a file locally (not server) when using a campaign workflow (note that File Transfer activity is not available in CAMPAIGN workflow, only in technical workflow)

1681429_pastedImage_0.png

In Data Extraction activity I set up the file and after that I do expect a javascript activity or something like that which let me download this file in my local machine.

Could you explain me in detail how to do that?

Thanks,
Salvatore

Jean-Serge Biron

Vipul Raghav

florentlb

Adhiyan

Adobe Campaign Classic

Replies

Avatar

Avatar
Establish
Employee
Adhiyan
Employee

Likes

241 likes

Total Posts

343 posts

Correct reply

124 solutions
Top badges earned
Establish
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile

Avatar
Establish
Employee
Adhiyan
Employee

Likes

241 likes

Total Posts

343 posts

Correct reply

124 solutions
Top badges earned
Establish
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
Adhiyan
Employee

01-02-2019

Hi Salvatore,

I do not think there is  any way by which we can download a file locally to your machine.

We can only export the results in csv , xml or text by the right click > export option to save files locally but not through the workflow.

Regards,

Adhiyan

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

01-02-2019

Hi,

Export it to your public resources dir on the server and download it through a web browser.

Thanks,

-Jon

Avatar

Avatar
Validate 25
Level 4
salvdangelo
Level 4

Likes

45 likes

Total Posts

130 posts

Correct reply

4 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 4
salvdangelo
Level 4

Likes

45 likes

Total Posts

130 posts

Correct reply

4 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
salvdangelo
Level 4

04-02-2019

Hello,

Please, keep apart the local download issue.

Suppose that I want to create and save a file and put it in a remote location.

Usually I would use a DATA EXTRACTION (FILE) activity and after that a FILE TRANSFER activity.

In this case DATA EXTRACTION requires a Target Schema but in my scenario I have no schema as input: I have to write an HTML contained in a vars.myHtml variable (note that HTML may exceed 255 bit) inside a new file.
This file will be sent to FILE TRANSFER as usual.

How may I do this?

Could you give me a simple working example?

Thank you,

Salvatore

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

04-02-2019

Hi,

From the product doc, put this in a js activity before file transfer:

var f = new File('c:/file.txt');
f.open('w');
f.writeln(vars.myHtml);
f.close();

Thanks,

-Jon