Documentation Vision Report+ Documentation

Vision Report+ / Administration Guide

Configuration Utility settings

This chapter configures remote links, mail, report approval, Teams, report file storage, printing and change tracking in the Configuration Utility.

Overview

This chapter configures remote links, mail, report approval, Teams, report file storage, printing and change tracking in the Configuration Utility.

These pages follow the PI Vision Toolbar page in the Configuration Utility (see Configuration Utility first run in the Installation Guide). You can run the utility again at any time: after Confirm on the AF Database page it loads the current settings from AF. Changes take effect when you click Apply on the Apply Configuration Change page; the service picks them up within one minute. As in the Reports pane settings, this needs a PI Web API administrator; otherwise the page says the changes apply only after PI Web API restarts (see Reports pane settings).

Settings that the utility does not show, such as debug logging and missed trigger recovery, are kept unchanged when you apply. For every AF configuration attribute, see Configuration attributes.

SMTP server

On the Configure SMTP Server page, configure the mail server that sends report emails and approval notifications. To skip mail, leave Enabled off.

Configure SMTP Server page with OAuth 2.0 authentication for Microsoft 365
  1. Turn on Enabled and keep Transport SMTP (for Microsoft Graph, see Microsoft 365 with Microsoft Graph).
  2. Enter Smtp Server and Port (default 587).
  3. Enter Sender Email and, optionally, Sender Display Name (default Vision Report).
  4. Select the Authentication that the server expects (see the table below) and fill in its fields.
  5. Turn Enable SSL on or off to match the server. Off never uses TLS, even if the server offers it. On uses TLS from the start on port 465 and STARTTLS on every other port.
  6. Enter a Test Recipient and click Send. The page reports Mail successfully sent. Please check your inbox., or the server's error with a hint on how to fix it.
AuthenticationUse it forFields
None (relay)An internal relay, Exchange Server or a Microsoft 365 connector that accepts mail from this server without a sign-inNone
User name and passwordServers that accept a user and password, for example SMTP services with an app passwordUser, Password
OAuth 2.0 (Microsoft 365)Microsoft 365 (Exchange Online) over SMTPMailbox (optional), Microsoft Cloud, Tenant ID, Client ID, Client Secret or Certificate Thumbprint, HTTPS Proxy (see Microsoft 365 with OAuth 2.0)

Installations upgraded from earlier versions keep their settings: with a User they use User name and password, without one None (relay).

Microsoft 365 with OAuth 2.0

Exchange Online disables user name and password (basic authentication) for SMTP by default at the end of December 2026; sends then fail with 550 5.7.30 or 535 5.7.139. With OAuth 2.0, Vision Report+ signs in as an application registered in Microsoft Entra ID. Until you switch, a Microsoft 365 administrator can re-enable basic authentication for the tenant while Microsoft still allows it.

Prerequisites: a Microsoft 365 administrator, a sender mailbox (a shared mailbox works), and outbound HTTPS (443) to login.microsoftonline.com and SMTP (587) to smtp.office365.com.

  1. In the Microsoft Entra admin center, open App registrations > New registration and register Vision Report+ Mail for this organization only. Note the Application (client) ID and Directory (tenant) ID.
  2. Under Certificates & secrets, create a client secret and copy its Value, or upload a certificate's public key and import the certificate with its private key into Local Computer > Personal on every server, readable by the service account.
  3. Under API permissions, click Add a permission, select APIs my organization uses > Office 365 Exchange Online > Application permissions > SMTP.SendAsApp, and click Grant admin consent.
  4. Allow the application to use the sender mailbox in Exchange Online PowerShell (commands below). Take the object ID from Enterprise applications, not from App registrations.
  5. In the Configuration Utility, enter smtp.office365.com, port 587, turn on Enable SSL, select OAuth 2.0 (Microsoft 365), and enter Tenant ID, Client ID and the Client Secret or Certificate Thumbprint.
  6. Send a test mail.
Connect-ExchangeOnline
New-ServicePrincipal -AppId <Application (client) ID> -ObjectId <Enterprise application object ID> -DisplayName "Vision Report+ Mail"
Add-MailboxPermission -Identity reports@contoso.com -User <Enterprise application object ID> -AccessRights FullAccess
Set-CASMailbox -Identity reports@contoso.com -SmtpClientAuthenticationDisabled $false

Tokens are renewed automatically; renew the client secret before it expires. Mailbox (optional), Microsoft Cloud and HTTPS Proxy are described in Configuration attributes.

Microsoft 365 with Microsoft Graph

Select Transport Microsoft Graph (HTTPS, Microsoft 365) when the server may only connect outbound over HTTPS, for example in OT networks where port 587 is blocked but an HTTPS proxy is available. Vision Report+ then sends through the Microsoft Graph API instead of SMTP, with the same app registration fields. Server, port, SSL and authentication are not used. Attachments of up to 150 MB are uploaded in parts; the Exchange Online message size limit (35 MB by default) still applies.

Prerequisites: outbound HTTPS (443) to login.microsoftonline.com and graph.microsoft.com, directly or through HTTPS Proxy, and the app registration from steps 1 and 2 above.

  1. Allow the application to send as the sender mailbox. Recommended: in Exchange Online PowerShell, assign the role Application Mail.Send limited to the sender mailbox (commands below). Alternatively, add the Microsoft Graph > Application permissions > Mail.Send permission and grant admin consent; this allows sending as every mailbox of the tenant.
  2. In the Configuration Utility, select Transport Microsoft Graph (HTTPS, Microsoft 365), enter Sender Email, Tenant ID, Client ID and the Client Secret or Certificate Thumbprint.
  3. Send a test mail.
Connect-ExchangeOnline
New-ManagementScope -Name "Vision Report+ senders" -RecipientRestrictionFilter "PrimarySmtpAddress -eq 'reports@contoso.com'"
New-ManagementRoleAssignment -App <Enterprise application object ID> -Role "Application Mail.Send" -CustomResourceScope "Vision Report+ senders"

New-ManagementRoleAssignment needs the service principal from step 4 of Microsoft 365 with OAuth 2.0 (New-ServicePrincipal). If New-ManagementScope reports that the command is not allowed in your organization, run Enable-OrganizationCustomization once and retry after it has completed. Do not also grant Mail.Send in Entra ID, because that permission applies to all mailboxes regardless of the scope.

Report approval

On the Report Approval page, configure the installation-wide approval policy. With approval, a PDF report run is held as a draft until an approver approves it; only then is it delivered. Approving and declining are described in the User Guide.

Report Approval page with PDF evidence, default AF identities and default recipients
SettingDescription
EnabledAllows reports to require approval before final delivery.
PDF EvidenceAdds the approval information to the final PDF: Dedicated approval page, Approval footer on every page, or Approval page and footer.
Default AF IdentitiesOptional approver identities for reports that use the defaults. Leave all unselected when inherited AF security already grants the required Annotate permission.
Default RecipientsOptional email addresses notified when approval is required, one per line. Shown only when SMTP is configured; approval also works without notifications.

Defaults apply only to reports configured to use them; report-specific selections stay unchanged. The same settings are available to PI Vision administrators in the Reports pane Settings (see Reports pane settings and System Status).

For each approval execution, the service grants Read, ReadData and Annotate directly to the report's approver identities. Approval is refused when other, non-administrative identities also have Annotate on the ReportExecution event frame template, so remove Annotate from those identities.

Teams channel integration

Vision Report+ sends execution alerts and display links to Microsoft Teams channels through Microsoft Teams Workflows (Incoming Webhooks). It only needs outbound HTTPS access; no Azure Entra ID app registration or inbound firewall rule is required. Only the optional upload of report files to SharePoint (SharePoint upload) uses an app registration.

Network and firewall requirements

The server running the Vision Report+ service must reach Microsoft's cloud endpoints. If it is behind a strict firewall, allow this outbound traffic:

ItemRequirement
Protocol and portTCP 443 (HTTPS)
DirectionOutbound only (no inbound rules required)
Destination URLs*.environment.api.powerplatform.com (Microsoft Teams Workflows are built on the Microsoft Power Platform)
Optional destination*.logic.azure.com (recommended; used by some legacy or region-specific Microsoft routing)

Note: The webhook URL contains a unique security signature token (&sig=...), so no additional API headers or authentication tokens need to be configured in the firewall.

Generate a Teams webhook URL

To test the integration, generate a webhook URL from a Microsoft Teams channel.

  1. Open Microsoft Teams and navigate to the channel where you want to send the test notification.
  2. Click the More options (...) icon next to the channel name and select Workflows. If you do not see Workflows, ask your IT administrator to enable the Workflows app in Teams.
  3. Search for the template Post to a channel when a webhook request is received.
  4. Click the template, give it a recognizable name (for example Vision Report+ Webhook) and click Next.
  5. Verify that the correct team and channel are selected, and then click Add workflow.
  6. Copy the generated webhook URL to your clipboard.

Enable and test Teams

On the Teams Channel Integration page, enable the feature and verify connectivity from the server.

Teams Channel Integration page with the Enabled toggle, Webhook URL and Test button
  1. Turn on Enabled. This enables Teams delivery for the service globally.
  2. Paste the generated URL into Webhook URL.
  3. Click Test. The utility sends a test Adaptive Card; on success it reports Teams test message sent successfully. and the card appears in the channel.
  4. If the test fails, check the outbound firewall rules and make sure the URL was copied completely.

Note: This URL only verifies connectivity. Report authors enter the actual channel webhook URLs in each report.

SharePoint upload

Reports can upload their files to a folder in SharePoint, for example the Files folder of a Teams channel. The upload is a delivery of its own (report section SharePoint). Mails of the report can then link the files instead of, or in addition to, attaching them, and Teams messages can add an Open in SharePoint button. People open the files also on a phone and outside the plant network. The files leave the server and are stored in Microsoft 365, and only people with access to the SharePoint site can open them.

Vision Report+ uploads through Microsoft Graph, signed in as the app registration of the mail settings (Microsoft 365 with OAuth 2.0, steps 1 and 2). The app may write only to the sites you grant it.

SharePoint page with Enabled, the app registration fields and Test upload

Prerequisites: outbound HTTPS (443) to login.microsoftonline.com and graph.microsoft.com, directly or through HTTPS Proxy, and a Microsoft 365 administrator with the SharePoint or Global administrator role.

  1. In the Microsoft Entra admin center, open the app registration, then API permissions > Add a permission > Microsoft Graph > Application permissions > Sites.Selected, and click Grant admin consent. On its own this permission opens no site.
  2. Give the application write access to each site that reports upload to, with the commands below. For a team, the site is the team's SharePoint site, shown under Files > Open in SharePoint of a channel.
  3. On the SharePoint page, turn on Enabled. Microsoft Cloud, Tenant ID, Client ID, Client Secret, Certificate Thumbprint and HTTPS Proxy are the same fields as on the SMTP page. Teams itself does not need to be enabled.
  4. Enter a Test Site URL and a Test Folder, for example https://contoso.sharepoint.com/sites/team and General, and click Test upload. The utility writes a small text file into the folder and deletes it again.
Connect-MgGraph -Scopes Sites.FullControl.All, Group.Read.All
$site = Invoke-MgGraphRequest GET "v1.0/sites/contoso.sharepoint.com:/sites/team"
$grant = @{ roles = @("write"); grantedToIdentities = @(@{ application = @{ id = "<Application (client) ID>"; displayName = "Vision Report+" } }) } | ConvertTo-Json -Depth 5
Invoke-MgGraphRequest POST "v1.0/sites/$($site.id)/permissions" -Body $grant -ContentType "application/json"

The commands use the Microsoft Graph PowerShell module (Install-Module Microsoft.Graph.Authentication). Do not grant Sites.ReadWrite.All or Files.ReadWrite.All instead: they open every site of the tenant. Report authors set the site and folder in each report (User Guide, SharePoint).

Report file storage

On the Report File Storage page (sidebar Local Reports), check that output files can be stored in the PI System, and optionally keep a local copy.

Vision Report+ always stores generated files (PDF, PNG, XLSX, CSV) as annotation attachments of the execution event frames. Before deleting its temporary files, the service compares the stored size with the local file. Some PI Web API environments, proxies or security products alter binary uploads; such PDFs then open blank.

Report File Storage page after a successful Test upload; the numbers match the steps
  1. Next to PI System Storage, click Test upload. The utility uploads a small test file to a temporary event frame, downloads it, compares the bytes, tries the encoded fallback if needed, and deletes everything again.
  2. Read the result (see the table below). The test runs as your own identity; the service uploads as its own service account.
  3. To keep an additional copy of every output file, turn on Save Copy Locally and select the Path (local or network folder). The service account needs write access to it.
ResultMeaningAction
File uploads work correctly.Files are stored unchanged.None.
Your PI Web API changes binary file uploads. ...Binary uploads are altered, but the encoded fallback works.None required. To store files in their original form, ask your PI administrator to check PI Web API and any proxy or security software in between.
Report files cannot be stored in the PI System until this is resolvedBoth uploads failed.Check annotation write permissions, the PI Web API allowed attachment file types (including txt), and proxies or security software between the server and PI Web API.

When the service detects an altered upload, it deletes the damaged attachment and stores the file Base64-encoded as <file>.vrp64.txt (description suffix (Base64 encoded)). After one detection, the service node uploads encoded files directly for 60 minutes. The Reports pane and the Print pane decode these files transparently; older toolbars cannot open them, so update all servers together.

If storing still fails, the execution completes with errors and the files stay in the local output folder. The service log records each upload with file names, sizes and annotation IDs (search for Output persistence or Encoded attachment).

Printing

On the Printing page, select the printers that reports may print to.

  1. Turn on Enabled.
  2. In Printers, check every printer report authors may select. The service prints only to these printers; a report or print that names another printer completes with errors and nothing is printed. The list shows the printers installed on this server; Microsoft Print to PDF and Microsoft XPS printers are not offered.

Printers must be installed on the server running the service and be usable by the service account without a dialog. Printing fails fast: an unavailable or interactive printer produces a visible error or Completed with Errors, and the generated files remain available. Print timeout and parallel print jobs are service defaults (see Service defaults).

Change tracking

On the Change Tracking page, turn on Enabled to require a reason for every change a user makes to a report. Each saved change is stored as a version, so users can see the change history and revert to previous versions.

Change Tracking page with the Enabled toggle