Cross-Site Lookup Column using Data Connection
Will Cooper
Will Cooper
June 26, 2023 | Office 365

Lookup fields have always been a popular feature in SharePoint. Especially in cases where there are lots of choices that need to be frequently updated. These work great, but what if you want a lookup list that can be accessed across all your sharepoint sites? In SharePoint Online, there hasn't been a convenient way to have this kind of functionality which often leads to duplication of data. SharePoint does offer Managed Metadata functionality, but this means not being able to tap into SharePoint lists which we may need for workflows or other updates. In many organizations, Managed Metadata functionality isn't used at all so it might be best to not add another area to your environment which needs to be managed.

Data Connections functionality solves this challenge allowing you to pull back data from other sites in SharePoint or even from external data sources so that you don't have to duplicate data that is stored somewhere else.

Is this article, we'll describe how you can create a cross-site lookup field in which you can have a key SharePoint list called (our example uses Departments) in one site that can be referenced from anywhere in your SharePoint environment across all sites. I suggest you begin by following this practice example and then you can apply these steps anywhere you need in your live lists in SharePoint.

One note before you begin, the data connection step (which can be done quickly) must be done by an M365 Global Administrator.

If you are not a Global Admin, please request their support. Note that once the data connection is created, the Global Admin will not need to make any further updates. You can update the data in the source list as an regular SharePoint user.

Begin by creating a simple list called Departments using the Title field for values as shown below:

If your lookup list contains additional fields, be sure to create a view that shows only the ONE COLUMN which you want to appear in your lookup field to be displayed in a dropdown. In our example, the default All Items view contains just the Title field which is exactly what we want. Now go to an entirely different site and add a practice list called Reports once again with no additional fields added.

We will add the lookup field in the next steps. Open Form Designer, then select Data Connections » Add new data connection:

  • Name the Data Connection Departments.
  • Select SharePoint for Type.
  • Copy and paste the URL of the source site where the list is located. This usually will include /sites/ in the URL.
  • Click Connect to authorize the connection. ! Must be done by an M365 Global Admin !

Select your lookup list Departments and the view that has 1 field showing which in our practice example is the default All Items view:

In the second Permitted forms tab, select only the View items option as shown below:

  • In the Access control tab be sure to carefully apply all settings below.
  • Turn OFF Allow hosted forms. (This isn't for a public form.)
  • Turn OFF the reCAPTCHA option. (This isn't for a public form.)
  • ADD your ROOT SharePoint URL to indicate that this data connection is allowed across of of your SharePoint environment.
  • Click the first Save button, then click the 2nd Save button to save your Data Connection.

Go back to the main Ultimate Forms Settings page and select External data lookup in the Columns section:

  • Add a new field named Department using Source type Data connection.
  • Select the Data connection which we just created in the previous step.
  • Select the four toggle options in the bottom exactly as shown.

+ Select key values from dropdown

+ Preload all key values

+ Hide get button

+ Show values in separate columns

Ensure other options are disabled.

  • Now you can save your field and add it to your form in Form Designer.
  • Test your functionality to see your new cross-site lookup field in action!

Now you have something handy that allows you to not repeat data in lookup lists on multiple sites. Although the M365 Admin does need to create the initial data connection, regular users can update the lookup list data as needed at any time after the initial setup. There are lots of great opportunities here. Common scenarios for lists that would be useful across all of SharePoint include:

  • Departments
  • Locations
  • Products
  • Divisions
  • Buildings
  • Building Rooms
  • Makes / Models of equipment

Enjoy!

Loading...

Add your comment

Comments are not designed to replace support calls. If you have a specific issue with one of our products, please send an email to support@infowisesolutions.com to open a support ticket.

UltimateForms

Build powerful business applications in SharePoint using only your browser.
100% No-Code Solution

It's never been easier, to create, innovate and share, all you need is your web browser!

Cost-effective

Address business process pain points immediately. Save time and money.

Fantastic Support Team

Facing difficulties installing the application? Contact our fantastic support team.

support@infowisesolutions.com

Related Topics

What is right for you?

Online Trial

Not ready to install yet? Create a trial site in our environment
  • Full control of the site and its settings
  • Optionally pre-install one of our solution templates
  • Site provisioned instantly
  • Automatically removed after 30 days
  • Available to everyone!

Error!

There was an error processing your request.
Please contact us for further details.

Installation

Install in your own environment, on Microsoft 365 and on premises
  • Start working with real users and data
  • Install online or on premises
  • Register for 30 day trial
  • Seemlessly convert to paid license
  • Requires administrator permissions

Success!

Download link has been emailed to .
If you do not receive it within 5 minutes, please check your spam.
The link is valid for 72 hours.
If you are having problems, please contact us.

Error!

There was an error processing your request.
Please contact us for further details.
Technical details:

Request a Live Demo

Book an appointment for a one-on-one with an ULTIMATEforms expert trainer.

Test drive the awesome power of ULTIMATEforms

Learn how to quickly and easily turn time-consuming business processes into automated, efficient workflows.

Have a strong start

Only thirty minutes of well-coached time can translate into great future savings in time and money. So, sit back and enjoy the ride.

It's Free

Learn how to address business process pain points immediately. Save time and money.