Tables and grants

Add tables to a source, read a table's contract, decide who may read it, set up and watch syncs, and withdraw the report access people gave Cortex.

A source is a connected system. A table is one stable, named view of it: "open orders", "customers", "create a note on a deal". Builders never see the request or the query behind a table, only its columns and its rules. IT writes that contract once, and after that every app, workflow and model reads the table the same way.

Access is explicit. A builder asks for a table, IT approves per app and per environment, and that approval is a grant. This page covers the Tables tab of Data: adding tables, what a table shows, who may read it, how syncs run and how to take access away. At the end it covers Report access, a different kind of permission: the one people give Cortex so that digests and alerts on restricted data can reach them.

Who can do this

Admins of Cortex Control: Data in the Governance group of the menu, tab Tables; and Settings, Report access under People & access. Builders only ask for data in Studio; they never see this page.

The Tables tab at a glance

The Tables tab of the Data page: a toolbar with search and filters, and a list of tables grouped per system, each group header with badges and a New table button.
Data, tab Tables: every table, grouped per system.

The tab lists every table, grouped by system. Above the list are Search tables or systems, a Filters menu, All systems, Only problems and Group by system, and a kind filter: All, Tables, Actions and Certified. Below it a line counts the tables that match.

ColumnWhat it shows
TableThe name builders see, with the technical name under it.
KindTable (it reads) or Action (it writes back to the system).
FeedsWhat it feeds: Figures via sync, Lookups, Apps, Not used or Action.
RefreshedWhen it was last delivered, or Live feed when nothing is copied.
TrustCertified, Not certified or Ad hoc · not certified, plus a Financial or Personal data badge.
AccessWho has approved access, as dev and prod counts, or "No access given".

The header of each system group carries what you need for that system:

  • Badges for its layer, Pack when a connector pack manages it, and a credential state when one needs a person (expiring, expired or refresh failed).
  • A New table button to add a table (an uploaded-file source has none).
  • A ... menu: Edit for the source, or Managed in Connectors for a pack source, which you change by upgrading the pack. A file source has no menu here; Upload a file is in the ... menu at the top right of the page.

Pick one system in the All systems filter (or choose Open source page in the Landscape) and that system's own page opens above the list: Last delivered, Sync frequency, Failed runs, 30 days, Schema changes, 30 days, a strip Last 7 days with the runs per day, its Latest events and a Credential block where you can Set expiry date to be warned before it lapses. All tables leads back, Open activity shows its activity.

With a system picked, its card also has a Home section field (admins only): the business section of the company model this system's data belongs to. Core (default) means none. Only business sections are offered; Core and pack sections are not. The field stays disabled until the company model has started. If the saved section is later archived, a line says so and the system reads as Core until the section is back. Choosing a section changes nothing in tables already in the model.

Tables and actions

A table reads. An action is a named, typed write-back to a system, such as "create a note on a deal". An action has inputs instead of filter parameters and an Execution policy: Runs directly (it runs when the consumer calls it and every run is recorded) or Needs approval ("Ask an admin to approve each run": each run waits in Activity, view Actions, until an admin chooses Approve and run or Reject).

Add a table

Start from the system

On the system's group header choose New table. In the dialog New table pick the Kind: Table (read) or Action (write).

Implementation

Describe the one call or query behind it. For a web API: the Method, the Path (placeholders like a name in braces are filled from parameters), optional Query parameters and a Request body template (JSON). For SQL: the Statement. Tick Returns an image when the address answers with a picture (at most 10 MB): apps can show it but it cannot be synced.

For a table you can also set Paging for sync: No paging (single request), OData (follow @odata.nextLink), Offset and page size or Cursor (next-page token). Paging only applies to syncs; live reads always return one page.

Parameters (or Inputs for an action)

Declare the Filter parameters consumers may set, each with a Name, a Type and whether it is Required. In SQL refer to them as @name; values are bound safely and never pasted into the statement. An action's Action inputs work the same way.

Test

Enter test values and test the table: Cortex fetches a sample. For an action, Render request shows what would be sent, and nothing is sent unless you confirm with Send for real… and Send request; use only values you are happy to see written.

Columns

Declare the Output columns: what consumers can rely on this table returning, and which column or columns identify a row (Key). Fill from last test takes them from your test. Builders and figures can only use the columns listed here, so you cannot continue without at least one.

Rules

Set the Usage rules:

  • Usage: Aggregatable (may be listed in full) or Row-level only (needs a filter). A row-level table needs at least one bound parameter for a live read and cannot be synced.
  • Sensitivity: General, Financial or Personal data.
  • Certified number: the official, reviewed version of the data. Only tables on a modelled (curated) source can be certified.
  • Access: Live reads only, Sync (a copy in the app) or Live reads and sync.
  • Incremental sync column (None (full snapshot) by default): sync then fetches only rows changed since the last run.

Choose Create. Uncertified financial data is row-level only, so nobody totals raw ledger lines by accident.

Open a table

Choose a row to open the table in a panel. At the top: its name, the system, badges for layer, certification, usage, access and sensitivity, an Edit button (an uploaded file has Upload a new version instead; a pack table says it is managed by the pack) and the path it feeds.

The panel opens on Contract and Preview. Choose More to add Access, Syncs, Health and Implementation. An action has no Syncs or Health.

TabWhat it shows
ContractThe Output columns (name, type, key), the Filter parameters and the Usage rules as consumers see them.
PreviewTry the table as saved: enter test values and run it. Nothing here is editable.
AccessWho reads it, per environment, and the buttons for their sync and for revoking access.
SyncsThe syncs of this table, one per approved app, with the Run log of the one you pick.
HealthSync health, the freshness limit and a review when the source changed.
ImplementationHow it is fetched: the request or statement, paging and, for synced copies, the Landing table SQL.

Who may read a table

Builder asks

In Studio, for one app and one environment.

IT decides

In Approvals: approve or decline.

Grant

The app can read in dev or prod, with its own key.

Read or sync

Live reads, or a copy refreshed on a schedule.

A request becomes a grant when IT approves it. Revoking the grant stops the access on the app's next call.

Requests arrive in Approvals (see Approvals). The Access tab lists every consumer per environment (Production and Development): an app, a workflow or a model, each with a status approved or pending. A pending request has Review in Approvals.

An app reads business data through the company model. What an app may still be granted directly: actions, images, ADX, and the tables of a connector pack that is read live and never mirrored (today the Smartsheet sheets IT ticked on the Sheets tab of the pack's Manage dialog; for scripts the same save is PUT /api/portal/connectors/smartsheet/kit-tables, see Manage an installed pack). IT approves that grant like any other and sees it on the app's Data tab under Live reads. Everything else an app reads through the company model.

Set up a sync

A sync copies the table into the app's own database on a schedule, so the app reads a local table. On the Access tab, next to an approved consumer, choose Set up sync (or Edit sync when one exists).

FieldWhat it does
Sync enabledTurn off to pause the schedule without losing the settings.
ModeUpsert (keep and update rows) matches rows on the table's key. Snapshot (mirror the source) copies everything each run and removes rows the source no longer has.
Run everyThe interval, at least 15 minutes.
Sync keyThe column or columns that identify a row. A sync needs a key: mark a column as Key in the contract first.
Purpose and Retention (days)Only for personal data. A copy needs a stated purpose and a retention period; older rows are deleted automatically.

Not every table can be synced. Row-level tables cannot, a table set to live reads only cannot until you change its access, and actions never can. The Access tab says which one applies. The app's table must exist before the first run: the Implementation tab shows the Landing table SQL to add to the app's migrations.

Take access away

Open the Access tab

Open the table, choose More and then Access. Find the app and the environment.

Revoke access

Choose Revoke access. The dialog says the access ends immediately and that the app loses it on its next call. Add an Optional note for the audit trail.

If a sync filled a table for that app, tick Delete synced rows to empty it too. Revoking access does not take back a copy the app already holds.

Confirm

Choose Revoke access again. Cortex confirms with "Revoked ... access to ...".

Watch the health of syncs

On Landscape the counters Syncs, Failing syncs, Stale syncs and Waiting for review show what needs you (see Data sources). A sync is stale when it has had no success for over twice its interval.

The tab Health of a table shows:

  • Last successful sync, Last failure and Next expected run, and the Run history.
  • A status: Fresh, Late, Failing, Never synced, Paused, Source changed or No sync.
  • Freshness SLO: how old the data may get before the table counts as late. Enter whole minutes from 15 to 525600, or Use default, which is twice the sync interval.
  • Source changed — review: when the system's columns differ from the accepted schema, the tab lists what was Added, Removed or Type changed, and Who is bound to this: the approved apps, workflows and models. Accept new schema makes the new columns the reference for the next comparison. It changes nothing downstream.

To Run now or Reset watermark (full resync), open Activity and choose the view Syncs. A reset makes the next run forget where the last one stopped and read everything again. Activity also has the views Actions (runs waiting for approval and past runs) and Access log (every read and action an app performed: which table, which parameter names, how many rows).

Upload a spreadsheet as a table

For data that lives in a file, choose Upload a file (in the ... menu at the top right of the page). An Excel (.xlsx) or CSV file becomes a governed table: you review the Columns found, mark a Key and choose the Sensitivity, then Confirm and publish. Only values are read; formulas and macros never run. A new version that does not fit the confirmed columns is held (Review upload): the previous version keeps serving until you confirm or Discard upload. Ad hoc files made by a builder show Ad hoc · not certified and serve until an expiry date that the owner can extend (Renew 90 days).

Keep a copy in Cortex

Cortex can keep its own copy of a table so models can put figures (sums, counts) on it. Each mirrored table row shows its mirror status (when it was last mirrored, or Not mirrored yet, or why the last run failed) and a switch, Mirror <table>, that turns the copy on or off. A copy that failed to fill a column shows Column fill with a Retry fill button. The same status and switch are on a connector's Datasets tab; for a SQL database (the tables you pick), Fabric lakehouse or Dynamics 365 F&O via Fabric Link install they are on the Tables tab instead (Data > Tables). A table without a sync key cannot be copied.

Report access: the permission people give Cortex

Some dashboards only show a person the rows they may see. A digest or alert on such a dashboard can only be sent while the person is away if they let Cortex read it as them. That permission is called Report access.

The Report access page in Settings with the heading Permissions and the message that nobody has given this permission yet.
Settings, Report access: here with no permissions given yet.

Open Settings and choose Report access under People & access. Each permission lasts 90 days, can be withdrawn here or by the person themselves in Hub (see Subscriptions), and every use is in the Audit log. The list never shows a token or a secret.

The search box above the list finds a permission by person or status (for example Withdrawn). The list shows 50 rows at a time; Show more adds 50, and "50 of 120" counts the matching rows.

ColumnWhat it shows
PersonWho gave the permission.
StatusActive, Withdrawn, Expired or No longer works.
GivenWhen the permission was given.
EndsWhen it expires (90 days after it was given).
Last usedThe last time a digest or alert used it.
UsesHow many times it was used.

On an active row choose Withdraw. The dialog "Withdraw the permission of ..." says that the stored sign-in is deleted at once and that their subscriptions on restricted data stop. The person can give permission again themselves. A withdrawal is recorded in the audit log.

Example: the planning team asks for the production schedule

Sam de Vries, IT admin at Brightwater Foods, has connected the ERP (see Data sources).

  1. Sam opens Data, tab Tables, and chooses New table on the "Brightwater ERP" group.
  2. Implementation: the OData path of the production orders. Parameters: a required Name line. Test: a sample comes back. Columns: Fill from last test, and the order number marked Key. Rules: Usage is Aggregatable, Sensitivity is General, Access is Live reads and sync.
  3. A week later a builder in the planning team asks for the table for her app in dev. Sam sees the request on Approvals and approves it.
  4. In the table, tab Access, Sam chooses Set up sync: Mode Upsert, Run every 60 minutes.
  5. In production a month later Sam finds the Health tab says Source changed: the ERP added a column. Sam reads that only the planning app is bound to the table and chooses Accept new schema.

Troubleshooting

On this page