Build email extracting a pdf from SFTP

Avatar

Avatar
Give Back
Level 3
RaulOcana
Level 3

Likes

14 likes

Total Posts

58 posts

Correct reply

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

Avatar
Give Back
Level 3
RaulOcana
Level 3

Likes

14 likes

Total Posts

58 posts

Correct reply

4 solutions
Top badges earned
Give Back
Validate 25
Validate 10
Validate 1
Boost 5
View profile
RaulOcana
Level 3

06-03-2020

Hi guys,

 

I have to send several emails to our customers, each email has it's own database (csv file from SFTP) and it's own attachment (pdf from SFTP).

 

I know how to automatically extract the CSV file to prepare the segmentation and send the emails on a workflow, but is there a way to extract the PDF from the SFTP and attach it to the html before sending it automatically?

 

Thanks!

 

Regards,

Raúl

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 3
Level 2
ovot
Level 2

Likes

3 likes

Total Posts

9 posts

Correct reply

2 solutions
Top badges earned
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 3
Level 2
ovot
Level 2

Likes

3 likes

Total Posts

9 posts

Correct reply

2 solutions
Top badges earned
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
ovot
Level 2

09-03-2020

@RaulOcana , 
If you know how to process the .csv then it should be similar for the .pdf files.
Then you could use a script in your delivery activity, inside the workflow, to attach the file, like this:

 

var filename = "file.pdf";
delivery.attachment.add(
  <attachment compressMode="print" filterActive="false" label="{filename}"
              nameScriptActive="false" type="normal" upload="false">
    <name>{filename}</name>
  </attachment>)
}

delivery.hasAttachments = true

Answers (0)