Microsoft Fabric lets the AI send queries and changes to one Fabric API for GraphQL that you configure.
What you can ask for#
Query the Products entity and return the first 25 active products. Do not run a mutation.
Show order totals by region for this month.
Add a form that creates a new record through the GraphQL API after I approve it.
Connect Microsoft Fabric#
Step 1: Find the connector
Open Tools, then Connectors, and search for Microsoft Fabric. You can also go to Settings, then Connectors, in your dashboard.
Step 2: Select Connect
Select Connect to open the secure form.
Step 3: Enter the details
Fill in Microsoft Entra tenant ID, Service principal client ID, Service principal client secret, Fabric workspace ID and GraphQL API ID. Hidden fields show as dots; use the eye icon to check what you typed.
Step 4: Save
Select Save connection. Swarmz encrypts the credentials and only decrypts them to call Microsoft Fabric for you. Everyone in your workspace can then use the connection.
Where to find your credentials#
In Microsoft Entra, register an application, create a client secret and note the tenant ID, client ID and secret. In Fabric, note your Fabric workspace ID and GraphQL API ID. Give the application access to the workspace and the API.
What the AI can and can't do#
- Run GraphQL queries against the API you set.
- Run GraphQL mutations when you allow changes, after your approval.
- The workspace and API IDs fix the address. The AI cannot send a request to any other Microsoft service.
- Apps you publish can call this connector too, not just the builder.
- Changes ask for your approval by default. You can adjust this under Agent permissions on the connection. See What an integration can access.
Troubleshooting#
Fabric denies the request.
Check Entra consent, access to the workspace and the GraphQL API, and the schema permissions.
The secret expired.
Create a new secret in Entra and update the connection.
Which IDs do I need?
The tenant ID, client ID, client secret, workspace ID and GraphQL API ID.
General steps for any connector are in Connect an integration. Keys and secrets are covered in Secrets and API keys. To remove it, see Disconnect an integration.
What Swarmz can do with it
Fabric GraphQL
Run bounded GraphQL queries and mutations.
More in Data & analytics
Still stuck?
A person from Swarmz Support can take a look.