I am using pxGenerateFile to generate an Excel file and then saving it as an attachment using SaveAttachment in the post-processing activity of a Flow Action in Constellation (Pega 25.1.3).
The file is generated and attached successfully; however, the attachment is not immediately visible in the Attachments section. It only appears after refreshing or reopening the case.
Is there an OOTB or recommended approach to refresh the case data or attachment list automatically after pxGenerateFile and SaveAttachment are executed, so that the attachment is displayed immediately without requiring a manual refresh?
I would expect the Contellation UI to handle the refresh automatically upong the post processing. If there is no OOTB configuation available, I would suggest raising a support ticket to investigate further.
It depends from which context are you performing this generation. As of v25.1.3, there are few refreshes which are not configured explicitly / don’t work as intended (sometimes). But Attachment widget works in most of the cases.
Having said that, you can try to trigger the refresh of the attachments with this OOTB activity pxRefreshAttachmentsWidget
Call this activity at the last step of you generation activity and that should trigger a refresh event.
I had a similar issue after generaitng the pdf document in 25.1.3. I’ve used this pzRefreshAttachments OOTB activity to refresh the attachment widget from Post Data transform.