GS525 – Document Archival and Compliance Audits in Globalization Studio

Submitting invoices or tax documents is only half the story. Many jurisdictions require businesses to retain signed documents for years, and be able to produce them instantly during an audit.

If your documents are scattered across desktops, emails, or local folders, you’re at serious risk.

In this article, you’ll learn how to:

  • ✅ Archive documents securely using Azure Key Vault and Blob Storage
  • 🔄 Optionally use SharePoint for user-friendly access
  • 🧾 Enable audit reporting with Power BI and Submission History
  • 📅 Apply retention policies to comply with country-specific requirements

🔗 This article connects with GS514 – Output Routing, and GS517 – Error Logs


🧠 Why Archiving Matters

Compliance regulations require:

  • Storing signed versions of invoices or tax files
  • Keeping records for 5–10 years
  • Providing evidence of submission and result
  • Ensuring auditability on request

Without proper archiving:

  • ⚠️ You may be non-compliant
  • ⏱️ Waste hours digging through logs
  • 💸 Risk reputational damage and financial penalties

🔒 Electronic Invoicing Prerequisites: Why Azure Key Vault and Storage Are Required

ComponentPurpose
Azure Key VaultStores digital certificates used for invoice signing securely
Azure Blob StorageStores output files like XMLs, PDFs, metadata, and logs
Storage SAS URL / Managed IdentityGrants secure access to the configured blob container

When used with Electronic Invoicing, these tools help ensure:

  • Regulatory compliance (e.g., Spain SII, Italy SDI)
  • Secure and auditable storage
  • Scalable, cloud-native document management

🪜 Step-by-Step: Configure Key Vault and Storage for Archiving

✅ Step 1: Create an Azure Key Vault

  1. Sign in to Azure Portal
  2. Go to Key Vaults > + Create
  3. Fill in:
    • Name: d365-keyvault-prod
    • Region: Same as your Dynamics 365 instance
  4. Under Access configuration, select Vault access policy
  5. Click Review + Create, then Create
image-275 GS525 – Document Archival and Compliance Audits in Globalization Studio

✅ Step 2: Create a Blob Storage Account

  1. Go to Storage accounts > + Create
  2. Set:
    • Name: d365archivestorage
    • Performance: Standard
    • Redundancy: Locally-redundant (LRS)
image-277 GS525 – Document Archival and Compliance Audits in Globalization Studio
  1. After creation, go to Containers and add a new container:
    • Name: e-invoicing
    • Access level: Private (no anonymous access)
image-274 GS525 – Document Archival and Compliance Audits in Globalization Studio

✅ Step 3: Store Storage account secret in Key Vault

  1. Collect Storage account connection string
image-276 GS525 – Document Archival and Compliance Audits in Globalization Studio
  1. Go to Key Vault > Object > Secret > Generate/Import
image-279 GS525 – Document Archival and Compliance Audits in Globalization Studio
image-278 GS525 – Document Archival and Compliance Audits in Globalization Studio

✅ Step 4: Setup Entra ID app and key vault access

  1. Register Entra App
image-282 GS525 – Document Archival and Compliance Audits in Globalization Studio
  • Generate Certificate & secret
image-284 GS525 – Document Archival and Compliance Audits in Globalization Studio
  • Give Graph permission
image-281 GS525 – Document Archival and Compliance Audits in Globalization Studio
  • Give Key vault permission to the entra app
image-285 GS525 – Document Archival and Compliance Audits in Globalization Studio

✅ Step 5: Complete Kay Vault Parameters in Dynamics

image-280 GS525 – Document Archival and Compliance Audits in Globalization Studio

✅ Step 6: Storage of Einvoice submission in Storage account

  1. Each submitted documents are now automatically get stored under blob storage > container that is created above
image-283 GS525 – Document Archival and Compliance Audits in Globalization Studio

📁 High-Level: Alternative Storage in SharePoint

Use Case:

  • SharePoint offers a user-friendly way to access and review submitted files.

High-Level Setup:

  1. Use Power Automate to monitor a folder in Azure Blob or OneDrive
  2. Trigger flow to:
    • Upload the document to SharePoint Document Library
    • Apply retention label (e.g., “Finance – 6 Year”)
    • Tag with metadata (e.g., invoice number, date, entity)

🧩 Use the same file naming structure to ensure consistency.

Storage OptionBest ForNotes
BlobScalable, secure archivalBuilt into D365
SharePointEnd-user access, finance team reviewExternal setup via Power Automate
DataverseStructured logs with integrationSuitable for Power Platform workflows

🧾 Include Metadata for Audits

Ensure every stored document includes:

  • Invoice number
  • Submission timestamp
  • Legal entity & VAT registration
  • Submission result (Success, Failed)
  • Original vs. signed copy

📌 You can store this as:

  • File/folder name
  • Separate metadata JSON file
  • Entry in Dataverse Submission History entity

🛡️ Apply Retention Policies

PlatformMethodExample
Azure BlobLifecycle Management PolicyDelete after 7 years
SharePointRetention Labels + PoliciesRetain 6 years post-create
Power AutomateFlag or move archived documentsMonthly or yearly review

🌍 Country-Specific Archival Rules

CountryRetentionRequirement
Spain6 yearsFacturae signed XML + FACe Response
UK6 yearsHMRC VAT, customs, declarations
Italy10 yearsSigned FatturaPA + timestamps
Germany10 yearsMust be electronically accessible

🔗 Related Articles


✅ You’ve Reached the End of the GS500 Series

This concludes the Globalization Studio GS500 Series, a comprehensive journey covering every major component of compliance automation within Dynamics 365 Finance & Supply Chain.

By now, you’ve learned how to:

  • Design, deploy, and manage localization features
  • Automate document formatting, submission, and validation
  • Integrate with Power Platform and Azure
  • Handle versioning, exceptions, and audits—all without custom code

💡 Whether you’re an architect, functional consultant, or compliance manager, this series equips you with the skills to implement Globalization Studio confidently and effectively.

🔁 Feel free to revisit specific articles:

  • Need a refresher on pipeline execution? See GS506
  • Want to automate document flows? Jump to GS514
  • Looking for version control guidance? Review GS522

🔍 View Full Article in PDF

GS525

Share this content:

I am Yogeshkumar Patel, a Microsoft Certified Solution Architect and ERP Systems Manager with expertise in Dynamics 365 Finance & Supply Chain, Power Platform, AI, and Azure solutions. With over six years of experience, I have successfully led enterprise-level ERP implementations, AI-driven automation projects, and cloud migrations to optimise business operations. Holding a Master’s degree from the University of Bedfordshire, I specialise in integrating AI with business processes, streamlining supply chains, and enhancing decision-making with Power BI and automation workflows. Passionate about knowledge sharing and innovation, I created AI-Powered365 to provide practical insights and solutions for businesses and professionals navigating digital transformation. 📩 Let’s Connect: LinkedIn | Email 🚀

Post Comment

Table of Content