How to isolate multiple Attachment components on a single UI Builder page (without duplicating files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
9 hours ago
Hi everyone,
I am currently working on a custom page in UI Builder (built on the Next Experience Framework) for a Playbook Experience.
On this page, I have added four separate Attachment components (now-attachments) under four different headers:
- Charge Slip
- Service Report
- Terminal & Accessories
- Other
All of these sections need to relate to the same parent record (e.g., a Work Order Task or an Incident).
The Issue:
Currently, when I pass the parent record's sys_id to all four attachment components, they all execute the same query on the sys_attachment table. Because they share the same record context, every component displays the exact same files. If I upload an image under "Charge Slip", it immediately displays in the other three sections as well.
I need each of the four sections to act as an independent upload/view zone without duplicating files.