Custom Export PDF from Workspace Form Including Related Lists - Best Practice?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2026 09:12 PM
Hi Community,
I'm looking for the best practice to implement PDF export from a Workspace record form, including related list data, without attaching the generated PDF to the record.
Requirement
From a Workspace form, users should be able to:
- Export the current record as PDF
- Include selected related list records in the PDF
- Download the PDF directly
- Avoid attaching the PDF to the record
- Follow supported Workspace best practices
Approaches Evaluated
1. Classic URL-based PDF export
Issue:
- Relies on window.open()
- Uses global window objects
- Not considered a modern or Workspace-friendly approach
2. Using g_navigation
Issue:
- Works in classic UI
- Does not appear to work in Workspace
3. Server-side PDFGenerationAPI
Issue:
- Generates the PDF successfully
- Automatically attaches the PDF to the record
- My requirement is to allow download without creating attachments
- Add Custom CSS using script is a big overhead.
4. Legacy GwtPollDialog approach
Issue:
- Not supported in Workspace
- Appears to be tied to classic UI components
Question
Has anyone implemented a supported Workspace solution for exporting a record attached with related list data to PDF?
Specifically:
- What is the recommended approach in Workspace?
- Is there a supported way to generate and download a PDF without creating a record attachment?
- Has anyone leveraged UI Builder components, Scripted REST APIs, or a custom PDF generation framework for this requirement?
- Are there any OOTB Workspace capabilities I'm overlooking?
I would appreciate any recommendations, architectural guidance, or examples of successful implementations.
Thanks in advance!
Nikhil | KPMG | Associate - Consultant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hello,
This functionality may help you to achieve your requirement ?
