Dynamic data binding in UI Builder Contact Card (Service Operations Workspace Context Sidebar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi everyone,
I'm working in Service Operations Workspace and have created a custom page in the Context Sidebar Page Collection.
My requirement is to display the Company details of the currently opened Incident in a Contact Card component.
Requirement
When an Incident is opened in the workspace:
The Contact Card should display the Company associated with that Incident.
If the user navigates to another Incident, the Contact Card should automatically display the associated Company's details.
What I've tried
Created a custom page in the Context Sidebar page collection.
Added a Contact Card component.
Tried using Lookup Single Record.
Tried using a Transform Data Source.
I can retrieve the data only when I provide a static Incident sys_id, but I cannot figure out how to bind the currently opened Incident dynamically.
My questions
How can I access the currently opened Incident record (or its sys_id) from a custom Context Sidebar page in Service Operations Workspace?
Which data source should I use?
Lookup Single Record?
Record Data Broker?
Transform Data Source?
Another approach?
What should I bind in the Record field of the data source so that it always receives the current Incident sys_id?
Once I have the Incident record, what is the recommended way to retrieve the referenced Company record and bind it to the Contact Card?
Are there any examples or documentation showing how custom Context Sidebar pages receive the current workspace record context?
I've searched through the documentation but couldn't find an example of dynamically accessing the current Incident from a custom Context Sidebar page.
Any guidance or screenshots of the data source and data binding configuration would be greatly appreciated.
Thanks!