Retrieve files from PegaCloudRepository
hi ,
I have a file (zip) under pegacloudrepository:/bix . Is there any activity or ways i could use to download the file to local?
***Edited by Moderator Marije to add Capability tags***
hi ,
I have a file (zip) under pegacloudrepository:/bix . Is there any activity or ways i could use to download the file to local?
@WeiPingT You can use OOTB Get file API pega data page
https://docs-previous.pega.com/data-management-and-integration/85/get-file-api
@Anoop Krishna Thanks for your reply! i did use the activity but there's no download trigger. Is there any special setup required?
@WeiPingT I hope you have used d_pxgetfile data page. Can you run the data page standalone? You just need to pass repository name and file path. File will get downloaded. Please provide the fikr path carefully. Once you are able to do it standalone, you can fit it into your processing.
Hello @Anoop Krishna , I think D_pxGetFile will just gives us the attachment stream of the file.
Hey @WeiPingT , Try to use GetAttachmentReference OOTB activity from Work-. If you pass LinkInsHandle of file to this activity, It will download the file.
@BATTINIRAMESH right, please refer below URL for reference. You need to use that stream and create a attachment page and save it to WO.
https://docs-previous.pega.com/data-management-and-integration/85/get-file-api
@BATTINIRAMESH linkinshandle can be passed only if the attachment is existing attachment because we need attachment link reference. As we are getting the stream content and we need to download that file using byte array of stream, tools.sendFile() should work which is used in DowloadFile, View activities.
Hi @WeiPingT, maybe this link can help: https://docs-previous.pega.com/data-management-and-integration/87/configuring-activity-access-bix-extract-files
Question
Question Solved
Question Solved
Question
Question Solved
Question Solved
Question
Question
Question
Question
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.