Add and configure data resources to a page

  • Release version: Washingtondc
  • Updated February 1, 2024
  • 2 minutes to read
  • Add data resources to dynamically expose data from tables, records, or other elements on your page in UI Builder.

    Before you begin

    Role required: ui_builder_admin

    Choose the application containing your data resource. The Global application contains the most common data resources. The data resources relate to Server data, Operations, and Transform. You can add a data resource such as Look Up Records, Table route map, GlideRecord Query, and so on.

    About this task

    In the data resource section of UI Builder, you can add and configure local data resource instances for your page. Local data resource instances dynamically expose data to components. If you have any inherited data resources, they are listed in the inherited data resource pane and are read-only. You don’t configure inherited data in UI Builder. Data resources from any application can be added to any page unless restricted by security permissions. You can add multiple local instances of the same data resource, if you need different configurations of the same data resource on your page.

    Procedure

    1. Navigate to All > Now Experience Framework > UI Builder.
    2. Open an experience to work in or create an experience by selecting + Create.
      See Configure how users interact with your applications in UI Builder for more information on creating experiences.
    3. Create or open a page.
    4. Add a component to your page.
      You need a component on your page before you can bind a data resource to it.
    5. Select the + icon in the data resource drawer.
    6. Select Data resource.
      Add a Data resource option.
    7. Select a data resource to add to your page.
      For example, you could select Look up a single record.

      Selecting the Global application, Look Up Records data resource, and Add button.

    8. Select Add to add the data resource to your page.
      The Data Resource configuration modal appears.
      Look up a single record configuration modal.
    9. Fill in the required information for the data resource in the Configure tab to expose the data you want.
      The configuration fields vary depending on which Data Resource instance is selected. The Configure panel and preview window may display errors when a Data Resource is added to a page. UI Builder attempts to evaluate Data Resources when they’re added to a page. The errors remain until the required Data Resource fields have been filled.

    10. Select the default label to provide a custom label and ID value.
      Field to customize the label and ID of a data resource.
      The data resource appears in the data and scripts drawer.
    11. Select Save in the UI Builder header.

    What to do next

    Now that you have a data resource connected to your page, you can bind the data to a component or bind an event to the data resource. For more information, see Connect data to your components and Bind an event to a data resource.