Search and Request ServiceNow Catalog Items Inside Microsoft 365 Copilot with Copilot UX Components
Declarative Agents
Let users find ServiceNow catalog items by describing what they need, then complete and submit a request form generated from the item's ServiceNow definition inside Microsoft 365 Copilot, using a Copilot connector and an SPFx-based Copilot UX component that SharePoint hosts.
IT service catalogs hold hundreds of items, each with its own request form. Users rarely know the product name. They know the job: “I need to edit a short video.” A Copilot connector already lets Microsoft 365 Copilot find the right items by meaning, even when the user never names a product. Requesting one still means choosing an item and completing its form, and that takes more than a text answer.
One way to close that gap is with Copilot UX components, generally available since SharePoint Framework (SPFx) 1.24. Search results appear as a grid in the chat, and a request form generated from the item’s ServiceNow definition opens and submits in the same conversation, as the signed-in user. SharePoint hosts the component, so there’s no separate host to provision. Other approaches, such as MCP Apps, are covered at the end.
Accurate as of November 2026. These products evolve quickly, so check the linked documentation for current capabilities and licensing.
What the solution needs to do
- Turn a description into catalog items. “I need to edit a video” has to become a short list of identifiable ServiceNow items the user can choose from.
- Support each item’s form without a hard-coded screen per item. Catalog items have different fields, and new items are added over time.
- Run requests as the real user. ServiceNow should apply that person’s access and record them as the requester.
- Keep a person in control of every write. Nothing is submitted to ServiceNow unless the user chooses to.
How the solution works
Two capabilities work together:
- Semantic search over a synced connector’s index. The connector indexes catalog items into Microsoft 365. The component then searches that index by meaning and gets back relevant items, including the metadata that identifies each ServiceNow item, so it can show them in a grid and load the selected item’s form.
- An interactive UI inside the chat. A Copilot UX component is an SPFx component that Microsoft 365 Copilot renders in the conversation. A declarative agent opens it instead of answering in text, and the component uses the user’s sign-in to act on the system of record.
The pattern: find through the Copilot connector, act through a Copilot UX component.
Nothing here is specific to ServiceNow. Any system with a Copilot connector and an API can follow the same shape.
See it in action
A project manager needs to edit a short product video for a client demo. She doesn’t know which tool the company provides, so she asks the agent: “Find me a list of available software for editing video.”
- Search. A grid opens in the chat with the best matches (Camtasia, Adobe Creative Cloud, Snagit), each with a Select button. Nothing has changed in ServiceNow yet.
- Select. She selects Camtasia, and a request form generated from the item’s ServiceNow variables appears.
- Complete. She fills in the form. Required fields are checked before Submit is allowed.
- Submit. She gets a request number with a link to the request in ServiceNow, recorded with her as the requester.
- Search again. The search bar stays in the UI, so she can look for something else without starting over.
The Copilot UX component in action: grid, generated request form, submit, and the request in ServiceNow
Under the hood: the ServiceNow example
This section is for readers who want to build it. The solution has five building blocks:
- Copilot connector (synced): the ServiceNow Catalog connector indexes catalog items into Microsoft 365.
- Pro-code declarative agent: a declarative agent defined in the SPFx project rather than in Agent Builder, because the UI it calls must ship in the same package. If you’re new to extending declarative agents, this walkthrough on custom APIs and MCP in declarative agents is a good primer.
- Copilot UX component: the grid, form, and confirmation, plus the tool the agent calls.
- Microsoft 365 Copilot Retrieval API: semantic search over the same index Copilot uses, returning structured results.
- Microsoft Entra ID trusted by ServiceNow: the component calls Entra ID-secured APIs with the user’s token. ServiceNow is configured to accept that token and map it to its own user, as described in the sample’s Configure ServiceNow steps.
Here’s how they connect. Path ① is read-only search through Microsoft Graph. Paths ② and ③ run only after the user clicks: the component calls the ServiceNow Service Catalog API directly with the user’s token, first to load the item’s form definition, then to submit the request.
The ServiceNow architecture, including the endpoints, permissions, and ServiceNow configuration. Select the image to enlarge it.
Get the code
The full solution is available as a sample in the Copilot Studio Samples repository: ServiceNow catalog in Microsoft 365 Copilot. It includes the SPFx project with the Copilot UX component and the declarative agent, plus PowerShell scripts that register the Entra ID app and configure ServiceNow. The sample is for learning and demos, so review security, error handling, and support requirements before you use it in production.
Design decisions
A synced connector for discovery
This sample uses a synced connector with the Microsoft 365 Copilot Retrieval API, so search runs inside Microsoft 365: it finds catalog items by meaning and returns their identities as data for the component. It’s the simpler path, it’s the one we tested, and it works with any synced Copilot connector, not only ServiceNow.
A federated connector is another possible path, using ServiceNow AI Search for service catalogs exposed as an MCP tool. It would give live results and permission checks in ServiceNow on every request, but it depends on ServiceNow AI Search and MCP setup, and each MCP server call consumes ServiceNow AI usage (assists). Other sources may not offer a comparable search tool. We haven’t tested that path.
Our demo connector is visible to everyone. For production, set it to Only people with access to this data source; the ServiceNow Catalog connector syncs user criteria and identity changes during full crawls.
Retrieval inside the component
The agent passes the component a short natural-language query. It can also pass an item’s ID, but only when its own knowledge returns exactly one clearly matching item, and the component accepts only a well-formed ID. The component then runs the search itself and gets structured results for the grid and form.
We chose this split because the UI needs exact item identities to load forms and submit requests. Getting them as data from the Retrieval API avoids depending on the model to copy IDs from its answer, and keeps Copilot’s response short. The trade-off is a second retrieval alongside Copilot’s own grounding, so the grid and Copilot’s text can occasionally differ. The agent’s instructions handle that by not listing items in text when it opens the grid.
Forms generated from ServiceNow variables
To support each item’s form without a separate screen, the component builds the form from the item’s variables returned by the ServiceNow API. It supports common types such as text, number, choice, radio, checkbox, date, and reference fields. For anything it can’t handle (an unsupported mandatory variable, a mandatory attachment, or an item that can’t be ordered), it shows a link to the item in the ServiceNow portal instead. It doesn’t reproduce ServiceNow UI policies, client scripts, or dependent-field behavior.
Submit only from the UI
The agent’s only tool opens the component. There’s no model-invoked submit tool, so a request is sent to ServiceNow only when the user clicks Submit. ServiceNow receives a short-lived user token, never a password, and applies that user’s permissions to every call. For human approval in other agent actions, see this human-in-the-loop pattern.
Tell Copilot what the user sees
The component shares its current state (the results, the selected item, the request number) with Copilot, so follow-up questions such as “compare these options” work in the same conversation.
Prerequisites and licensing
- Licenses: a Microsoft 365 Copilot license for every user, developer, and tester, including for testing in the Copilot Workbench. Copilot UX components have no consumption-based charges, the Retrieval API is included for Copilot-licensed users, and synced connector indexing has no extra cost. See Copilot UX components availability and connector prerequisites.
- Clients: Copilot in a supported browser or desktop client. iOS and Android, including Teams mobile, aren’t supported at general availability.
- Microsoft 365 admin: an admin who can deploy the package to the SharePoint App Catalog and approve its API permissions, an AI Administrator to deploy the connector, and an admin to make the agent available to users.
- Entra ID: an app registration that exposes a scope for ServiceNow.
- ServiceNow: admin access to configure the Entra ID (OIDC) trust and CORS rules. Each user’s Entra ID identity must map to their ServiceNow user; in our setup, we matched on email.
Permissions are tenant-wide. API permissions approved for an SPFx solution (here,
ExternalItem.Read.Allfor the Retrieval API and the ServiceNow scope) apply to every SPFx solution in the tenant, so review them with your security team.
Other option: MCP Apps
Microsoft 365 Copilot also renders MCP Apps, interactive UI delivered by an MCP server. Copilot still runs the conversation and follows your agent’s instructions; the difference is where the server, its tools, and the UI live:
- ServiceNow-hosted. ServiceNow’s MCP Server Console can attach an MCP app to a tool (getting started). There’s no server for you to host, but the tools and UI are built and managed in ServiceNow, and calls to the ServiceNow MCP Server consume ServiceNow AI usage units (assists), as listed in the ServiceNow Otto overview. We haven’t verified whether the available tools cover the full search, form, and submit experience.
- Self-hosted. You build, host, and pay for your own MCP server, which handles authentication to ServiceNow. You control the tools and UI, and the same UI can work in other MCP Apps hosts, including Copilot Studio.
With Copilot UX components, by comparison, SharePoint hosts the UI and there’s no MCP server to run. For broader MCP trade-offs, see this comparison of MCP servers and connectors.
Resources
- Build your first Copilot UX component
- Access data from a Copilot UX component
- Provide Copilot with context from your component
- Connect to Entra ID-secured APIs in SPFx
- Copilot connector prerequisites and licensing
HR, facilities, finance, and access requests all fit the same pattern: anywhere people can describe what they need more easily than they can find it. Which process would you bring into Copilot chat first? Let us know in the comments.
