Integration guideProfessional firms

Outlook to secure portal intake: redirect emailed client documents with Microsoft Graph

Move emailed client documents into a secure portal process: native add-ins first, Graph subscription renewal, message field map, failure fixes and tests.

Use add-ins and mail rules before building

Most portals already have a way in from Outlook. ShareFile offers an Outlook plugin for sending and requesting files through secure links, Clio Manage has an Outlook add-in that files emails and attachments to a matter, and practice platforms such as TaxDome sync mailboxes so staff can turn a message into a client request. On the Microsoft 365 side, data loss prevention policies and mail flow rules can warn staff or block outbound messages that contain SSNs. Confirm which of these your plans include and switch them on first.

The integration here covers what those tools do not: a shared intake mailbox, such as documents@ or intake@, where clients keep emailing attachments. Each new message creates a tracked task for a person, who sends the client a portal request and files the attachment properly. The automation never forwards, deletes or replies with attachments on its own.

If your volume is modest, Power Automate’s Office 365 Outlook connector can watch a shared mailbox and create a task without any code, and it handles subscription upkeep for you. Build directly on Microsoft Graph, as described below, when you need exact deduplication, immutable message references and a backfill you control.

The integration contract

Item Decision
Source One shared mailbox’s Inbox, via a Microsoft Graph change-notification subscription for created messages
Permissions Application permission to read mail, restricted by Exchange Online so the app can open only that mailbox
Reads Message metadata and attachment names, types and sizes; attachment content is not copied
Output An intake task in the practice platform, linked to the client when the sender matches exactly one contact
Writes back An Outlook category such as “Intake: task created” on the message
Human step Staff send the portal request, file the attachment and decide whether to delete the email under the retention policy

Field mapping

Graph message property Intake task field Rule
id (requested as an immutable ID) source_message_id Request immutable IDs so the reference survives the message being moved to another folder
internetMessageId dedupe_key One task per internet message ID, even if notifications repeat
from.emailAddress.address sender_email and client match Exact match to a single client contact; zero or several matches go to triage
subject task_title Truncated to 80 characters, with digit runs longer than four characters masked
receivedDateTime received_at Drives the response target of one business day
hasAttachments plus attachment name, contentType and size attachment_summary Names and types only; password-protected archives are flagged
conversationId thread_ref Follow-ups in the same thread update the open task

Events and triggers

  • Subscription lifetime. A Graph subscription on Outlook messages lasts at most 10,080 minutes, just under seven days, and only 1,440 minutes when it includes resource data. Run a renewal job at least daily that extends expirationDateTime well before it lapses.
  • Validation. When you create the subscription, Graph posts a validation token to your notification URL, which must return it promptly as plain text or the subscription is not created.
  • clientState. Set a secret clientState value on the subscription and reject any notification that does not carry it.
  • Lifecycle notifications. Register a lifecycle notification URL. Act on reauthorizationRequired by reauthorizing or renewing, on subscriptionRemoved by recreating, and on missed by backfilling.
  • Backfill. Use a delta query on the Inbox to recover anything that arrived while notifications were missed or the subscription was down.

Failure and recovery

Failure Symptom Recovery
Subscription expired No new tasks for a day while email keeps arriving Daily renewal; an alert when the newest task is older than four business hours; delta query to backfill
Missed lifecycle event Graph signals that some notifications were not delivered Run the delta query immediately and compare against existing dedupe keys
App secret or certificate expired Renewal and reads fail with authorization errors Track the credential expiry date with a reminder 30 days ahead
Inbox rule moved the message first Fetch by ID fails Immutable IDs plus a lookup by internetMessageId
Lookalike sender domain A task links an impostor to a real client Exact-address matching only; mismatches go to triage with a phishing check
Duplicate notifications Two tasks for one email Dedupe on internetMessageId before creating anything

Tests before go-live

  1. Email a PDF to the intake mailbox from a test client address: one task appears within five minutes, linked to that client, listing the file name.
  2. Send from an address that matches no contact: the task goes to triage with no client link.
  3. Let the test subscription approach expiry: the renewal job extends it and logs the new expiration time.
  4. Delete the subscription by hand, send two emails, then restore: the delta backfill creates both tasks with no duplicates.
  5. Post a fake notification without the clientState secret: it is rejected and logged.
  6. Confirm the app cannot read any mailbox other than the intake mailbox.

Ownership

The Microsoft 365 administrator owns the app registration, its mailbox restriction, the credential expiry calendar and the renewal job. The intake coordinator owns the triage queue and the one-business-day response target. A partner reviews the mailbox scope and retention setting once a year.

Security anchors

  • For tax practices, the FTC Safeguards Rule requires encryption of customer information sent over external networks, and IRS Publication 4557 explains why email attachments are a common exposure. Moving clients to a portal is the remedy; this workflow speeds that redirect.
  • For law firms, ABA Model Rule 1.6(c) and ABA Formal Opinion 477R support stronger channels for sensitive client documents. States adopt their own versions.

This page describes an administrative process. It is not legal or tax advice; have a qualified professional review your firm’s policies.

Sources

Related guides

The channel decision behind this guide is in secure portal vs. email attachments. Once documents arrive, name and file them with secure file naming and routing, and keep chasing what is still missing with tax document collection or legal document reminders. Track triage backlog and renewal alerts in Operations Desk.

Sources and application notes

Timings, workload estimates and approval limits in this guide are proposed operating settings. Adapt them to your firm; binding duties come from the applicable rules.

U.S. tax and legal examples need jurisdiction-specific review. ABA model rules apply only as adopted. Sources describe requirements or product behavior; they do not certify this workflow.

Publisher: FirmWorkflows. Report a correction with the URL and statement concerned.

Published by FirmWorkflows · Published · Updated

Keep it running

Turn this workflow into a procedure your team owns.

Operations Desk keeps every procedure, its owner and its open exceptions in one offline file, so anyone can cover for anyone. One payment, no subscription, and your client data stays on your device.

Optional · by email

Five short emails on running a calmer firm.

One practical step every two days: start from a 15-point readiness checklist, map where client data travels, measure before you promise savings, pick one workbook and plan your next process. Everything else on this site works without your email.

We send one confirmation email first, and nothing else until you confirm. Sent by FirmWorkflows through Brevo. Privacy policy.

Start with one better process

Find your firm’s
next small win.

Choose a process. Build your plan. Keep a copy.

Build your free workflow plan

Available instantly. No account or email required.