Data 360 Inspector

Features · Personalization and marketing

Toolbox and staying safe

REST explorer, connection check, OAuth, administrator policies and downloads.

Video coming soon.

From the article When no page has the answer, and when security asks what the extension does (part 33 of the series).

Two questions come up with every Data Cloud tool I have used. The first is mine: "There is no page for this, can I see the raw API answer?" The second comes from a client's security team: "What does this extension send, and to whom?"

Today, the last article of the series, is about the parts of Data 360 Inspector that are not a feature on their own: the tools for when a page falls short, and the controls that let a security team say yes.

REST explorer

REST explorer sends a request to any Salesforce REST API path in your org and shows the answer. GET works on any path under /services/data/. POST is limited to the Data Cloud query endpoints (ssot/query-sql and ssot/queryv2), because a query only reads.

Examples fills the form from ready-made requests, grouped as Data Cloud setup, Data model, Identity, insights and segments, Query (POST, read only), and Salesforce core. Where a path has NAME in it, that word is selected so you can type over it. Nothing is sent until you press Send.

In my demo org, the Data streams example (ssot/data-streams?limit=50) answered 200 with 22 streams.

The REST explorer after GET /services/data/v68.0/ssot/data-streams?limit=50 from the Examples list (collapsed): status 200 with its time, the Shape only (no values) box, the Tree, Graph and Text views with a key search, Open all, Close all, Copy and Download .json, and a JSON tree with currentPageUrl, a dataStreams array with the first stream opened (AbnExperiment_Home, its data source, type, status and record counts) and the next ones closed.

Shape only (no values) turns the answer into its key names and types, which is what I paste into a bug report.

Connection check

When a page shows an error, Connection check is the first place I look. Run checks calls the core API and the main Data Cloud endpoints, one by one: API versions, the organization, the current user, data spaces, metadata, Data Lake Objects (DLOs), Data Model Objects (DMOs), data streams, calculated insights, segments, identity resolution, activation targets, data graphs and both query endpoints. Each row has its status, time and a short result, and a click opens its shape and the full response.

Copy report (no data values) copies a Markdown report with the statuses, errors and response shapes: key names and types, never values. That is the file I ask people to send when something fails on their org, because it says what the org returns without showing a single customer record.

Above the checks, How this tool connects says who the extension acts as, that it sees what that user can see, and that every call is tagged client=DataCloudInspector, so admins can find it in the org's API usage and event logs.

API console

Settings > Tools > API console adds a drawer at the bottom of the window with every call to Salesforce: method, path, status and time, with the request body and the response for the one you click. It keeps the last 200 calls in memory only, filters by text, and downloads as Markdown. It is off by default.

Logging in with OAuth

Data 360 Inspector normally uses the Salesforce session already in your browser, so there is nothing to install in the org. Some orgs turn on API Access Control, which rejects that session.

For those, Settings (and Home) has Log in with OAuth. An admin creates an External Client App in the org with OAuth, the api scope and the Data Cloud scopes (their names start with cdp_), and PKCE required; the page shows the callback URL to paste. You paste the client ID and log in.

The extension keeps only the access token, in session storage, so it is gone when the browser closes. There is no refresh token, and Log out of OAuth revokes the token in Salesforce.

Administrator policies

An organization can set nine policy keys through Chrome's managed policy: the Google Admin console, a Windows registry key, a macOS configuration profile or a Linux policy file. Users see them under Settings, "Set by your administrator", and cannot change them.

The keys are:

  • authMode: oauth-only never reads the browser session cookie.
  • allowedOrgDomains: only these My Domain hosts, exact or with a wildcard.
  • disableCache: org metadata and Health results last only until the browser closes.
  • disableQueryHistory: no SQL run history.
  • disableDiagramforce: no Open in Diagramforce.
  • disableFeedbackUpload: the feedback form only opens an email.
  • disableDecisionTests: Personalization > Try a decision never sends a request (Day 31).
  • disableRemoteImages: images in decision answers and template previews are not loaded.
  • disablePanelActions: the pullout panel never runs Refresh now on a data stream (Day 35).

The repository's docs/enterprise-deployment.md has the force-install and host-limit settings, a JSON example with every key, and the External Client App steps for OAuth only.

Downloads on every page

Almost every page has a Download menu, and it offers the same formats everywhere:

  • View as Markdown and Copy as Markdown.
  • Markdown (.md), Word (.docx) and HTML (.html).
  • PDF, through the browser's print dialog and Save as PDF.
  • Excel (.xlsx), on pages with tables.
The Download menu opened on the Segments page with View as Markdown, Copy as Markdown, Markdown (.md), Word (.docx), PDF (print, Save as PDF), HTML (.html) and Excel (.xlsx).

I use Word for client handovers and Markdown for tickets.

Settings > Storage

Everything the extension keeps is in your browser, and Settings > Storage lists it by part with its size: cached metadata, saved queries, query history, Health results, Bulk lookup and Compare results, cached org data, org snapshots and page settings, plus OAuth logins when there are any. Session items, such as Bulk lookup and Compare results with people's data, are deleted when the browser closes.

Each part has Delete, parts kept per org can be deleted for one org, and Delete everything clears it all after a confirmation. Keep org details for sets how long setup read from an org is used before it is read again: 1 hour, 6 hours, 1 day or 7 days.

Settings > Storage: "1.9 MB in this browser" with Delete everything, the note that records and query results are not kept after the browser closes, Keep org details for set to 1 day, and the parts with their sizes and a Delete button each: Cached metadata, Saved queries, Query history, Health results, Bulk lookup and Compare results (session), Cached org data, Org snapshots and Page settings.

Feedback

Most features in this series started as a message from someone using the extension. The Feedback button in the top bar opens a form for a problem, an idea or a question, with an optional screenshot (capture this page, capture another tab or window, or upload or paste an image), optional technical details (version, browser, page, org domain, API version and the last API calls as paths and statuses, no SQL or data), and an optional name and email for a reply. See exactly what is sent shows those details before anything goes.

Send posts it to my feedback service. Open email starts a message in your own mail app instead, and Copy text copies it. The form says this at the top: Send goes to the developer's feedback service, and you can also email me or reach out on LinkedIn. Under the disableFeedbackUpload policy, only the email is offered.

Thirty-three days

That is the full app, one feature a day; the next two days are the pullout panel that brings it onto Salesforce pages. We went from the tour, objects and SQL (Days 1 to 5), through people (Days 6 to 9), streams, data models, identity and data graphs (Days 10 to 16), segments, activations and insights (Days 17 to 22), to health, impact, comparing orgs and credits (Days 23 to 29), and Personalization and Marketing Cloud Next (Days 30 to 32).

Through all of it, the extension stayed read only, with two exceptions that are off until you turn them on in Settings and confirm each use: Try a decision, and the pullout panel's Refresh now on a data stream (Day 35). Settings also has a Pullout panel card: hide the edge tab on Salesforce pages, and turn the panel's actions on or off. Administrators can switch both actions off for everyone with the disableDecisionTests and disablePanelActions policies.

If something does not work the way you expect, or you keep answering the same Data Cloud question by hand, press Feedback and tell me.

Try it

Data 360 Inspector is free on the Chrome Web Store: https://chromewebstore.google.com/detail/data-cloud-inspector/ghiojkipoephhlkcgcgochoihogiahog. The source is on GitHub at https://github.com/matheswarwan/data360-inspector under the MIT licence, published by Ateko.

Thank you for reading along. Two more days follow: the pullout panel, which brings the Inspector onto every Salesforce page, and its cards.