Inconsistent Attachment Handling in Pega: Browser Display vs. Download Behavior
Hello team,
I’m currently facing an issue related to attachments being handled differently depending on how they are imported into the system.
Problem Diagnosis:
Two attachments are being imported using different methods:
-
One via the OOTB (Out Of The Box) Pega method
-
The other via a web service
When trying to open these attachments, their behavior differs:
-
First attachment (imported via OOTB Pega): opens directly in the browser.
-
Second attachment (imported via the web service): automatically downloads instead of opening in the browser.
I tried modifying the CreateEntity activity in order to reproduce behavior similar to the standard OOTB Pega functionality:
-
Forcing the value of pyMimeType
-
Forcing other parameters to ensure the creation of pyContentLocation
-
Analyzing the differences in the XML files of the attachments (those generated via OOTB and those via web service) and aligning them in the activity to achieve consistent behavior
Result: Pega now attempts to open the file in the browser instead of downloading it, but the content does not display correctly. (In the screenshot)
Hello team,
I’m currently facing an issue related to attachments being handled differently depending on how they are imported into the system.
Problem Diagnosis:
Two attachments are being imported using different methods:
-
One via the OOTB (Out Of The Box) Pega method
-
The other via a web service
When trying to open these attachments, their behavior differs:
-
First attachment (imported via OOTB Pega): opens directly in the browser.
-
Second attachment (imported via the web service): automatically downloads instead of opening in the browser.
I tried modifying the CreateEntity activity in order to reproduce behavior similar to the standard OOTB Pega functionality:
-
Forcing the value of pyMimeType
-
Forcing other parameters to ensure the creation of pyContentLocation
-
Analyzing the differences in the XML files of the attachments (those generated via OOTB and those via web service) and aligning them in the activity to achieve consistent behavior
Result: Pega now attempts to open the file in the browser instead of downloading it, but the content does not display correctly. (In the screenshot)
Any insights or suggestions would be greatly appreciated!
Best regards,
***Edited by Moderator Marije to change Content Type from Discussion to Question; changed Academy to Product tag***