How to Add Delivered To Details Under Starbucks Details in UI Builder?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Community,
Good day!
In the Rewards section, when we click the Rewards button, a left-side panel displays the Rewards Summary.
Under More Actions, we can view the customer's transactions in a list view. When we click the magnifying glass icon for a transaction, a Delivered To container is displayed below the customer's address details.
We have a similar requirement for the Starbucks Details panel. We would like to display the Delivered To information within the left-side panel under the Starbucks Details section.
I have attached screenshots showing the current behavior and the desired placement of the Delivered To container.
I have attached screenshots showing the current behavior and the desired placement of the Delivered To container.
I am be sharing where should we place Delivered To container ?
Could you please review the screenshots and requirements and advise on the best way to implement this using UI Builder? Specifically:
- How can we add a new Delivered To container under Starbucks Details?
- Which UI Builder component would be recommended for this use case?
- How can we bind and display the Delivered To data in the panel?
Any guidance or recommendations would be greatly appreciated.
Thank you!
Best regards,
Srinivasu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @SrinivasuSa
Thanks for the clear screenshots. The good news is that you already have most of what you need: the Order Details modal shows Delivered To, so the data source and the field mapping exist somewhere in your workspace. The job is to reuse them in the side panel rather than build from scratch.
1. Start by finding how the modal gets its data
Open the modal's page in UI Builder and look at two things:
- Is "Order Details" a custom component? The Starbucks styling suggests it might be. If the modal and the side panel both use the same custom component, Delivered To may just be a section switched on by a property (or by which data is passed in), not something you need to rebuild. Compare the component's configuration in both places first. This could turn into a one-property change.
- Which data resource feeds Delivered To? In the modal, select the address and city fields and check what they're bound to (it will look like @data.<resource_id>.output...). Note the data resource, its inputs (most likely the transaction or check ID), and the path to the delivery fields.
2. Add the data to the side panel page
Open the "SBUX Order Details" side panel page in UI Builder and add the same data resource (or a transform data broker that returns just the delivery fields). Pass in the same identifier the modal uses. The side panel already shows the store, stars and earn rate for the transaction, so it should already have that ID available as a page property or from an existing data resource. Bind the input to that.
3. Build the Delivered To section
If it isn't a reusable custom component, recreate the modal's layout with standard components, directly below the store details and above the View DoorDash Tracking button:
- A container for the section, with a heading or Stylized text for "Delivered To".
- A two-column layout inside it, with Stylized text components in label/value pairs: Address and City; State and Postal Code; Delivery Instructions; Contactless delivery.
- Bind each value to the data resource, for example @data.<resource_id>.output.<path>.address, mirroring the paths the modal uses.
4. Hide it when there's no delivery
Most transactions in the list are reloads or in-store purchases, so set the container's visibility to a binding that checks whether delivery data exists (for example, that the address is present). Otherwise agents will see an empty "Delivered To" block on most orders.
One tip: if this panel is shared by several workspaces or pages, make the change in a variant or a duplicate rather than editing a page other teams depend on, and test with both a delivery order and a non-delivery order before publishing.
If you can share how the modal's Delivered To is built (custom component or standard components, and the data resource it uses), I can be more specific about the bindings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @SrinivasuSa ,
It appears that Starbucks Agent Workspace is a custom workspace. You should be able to identify the specific data resource that is currently retrieving the data for the Starbucks Details section in the UI Builder side panel page/viewport.
First, update that data resource to also retrieve the Delivered To information, such as the delivery address, city, state, postal code, delivery instructions,etc.. Then, use UI Builder components such as Container, Card, Stylized Text, and a two-column layout to build the Delivered To section below the Starbucks Details section.
You can bind the displayed values to the relevant fields returned by the data resource. Also, consider adding a visibility condition so that the Delivered To container is displayed only when delivery related data is available.
Since this is a custom workspace, it may be helpful to review the existing Order Details modal or related UI Builder pages, as they may already contain the required data resource and field bindings that can be reused.
Please coordinate with colleagues who have UI Builder experience and access to this ServiceNow instance, as they may be able to identify the exact data resource, page, and component configuration more quickly.
Mark it helpful and accept the answer if it helps 👍✔️.