Question

3
Replies
59
Views
JuanaMaria Member since 2014 8 posts
Capgemini
Posted: 6 months ago
Last activity: 2 months 1 week ago

How to create a zip file to store in sftp folder using repository API

Hi all,

 

I'm retrieving data from a Report Definition to be set as the content of a CSV file to be stored in SFTP folder.

For this, I've customized a copy of pxConvertResultsToCSV pega activity.

What I've done is to substitute 2nd java step, the one that creates the file, with D_pxNewFile savable data page from Repository API, because it was the only way I've been able to set the file into SFTP folder.

After testing it, the size of the file can be quite large, so for performance reasons when it will be downloaded by the customer, a zip file will be a better option.

All information I've been able to find, implies the use of java code to set a temporary file, that will be opened to create a new zipped one using java library.

Do you know if there's a way of creating the zip file with repository apy without having  to create a temporary file?

Thanks in advance

 

***Edited by Moderator Marissa to update General to Product***  

Pega Marketing for Communications 8.4 Cloud Services Pega Cloud Data Integration Java and Activities User Interface Other Industry Senior System Architect
Share this page LinkedIn