Question
State of New Jersey
State of New Jersey
US
State of New Jersey
Posted: May 25, 2021
Last activity: May 8, 2022
Last activity: 8 May 2022 23:38 EDT
Closed
Solved
How can I copy Pega Attachments from one case to another case, when the case types are different.
How can I copy Pega Attachments from one case to another case, when the case types are different.
@Gunasekaran Baskaran
created a custom activity, did the following in it.
Used the following OOTB Data Page, to get Stream in "pyContents" property from case A. Setting the stream to ".pyAttachStream" in Data-WorkAttach-File page of Case B.
D_pxGetFile[repositoryName:FilePage.pyStoredInRepository,filePath:FilePage.pyContentLocation,responseType:"STRING"]
Following are the properties I am setting in Data-WorkAttach-File page, once I apply Obj-Save to Data-WorkAttach-File page, it will upload the stream using pzSaveToRepository OOTB activity, which in turn uses another OOTB Data Page D_pxNewFile.
.pxInsName
.pxRefObjectClass
.pzInsKey
.pxRefObjectKey
.pyIsStreamBasedUpload = false
.pyContentLocation
.pyAttachStream = pyContents from D_pxGetFile