GS516 – Connecting to Government Portals and Web Services in Globalization Studio

Many countries now mandate businesses to submit tax, invoice, or audit data electronically to government platforms. Microsoft simplifies these obligations by offering prebuilt integrations through Globalization Studio and Electronic Reporting (ER).

In this article, you’ll learn:

  • Which countries are supported out-of-the-box
  • How Microsoft handles submissions like Brazil’s NF-e and Italy’s FatturaPA
  • How Spain’s SII VAT reporting is implemented using ER + message processing
  • What tools are used: messaging, pipeline, web service settings, and web apps

This builds on GS506 – Pipelines and GS515 – Digital Signatures.


🌍 Countries with OOB Government Portal Integration

Microsoft provides native connectors and ER formats for multiple regions. These features require no custom development and are maintained by Microsoft.

✅ Available Out-of-the-box:

CountrySupported SubmissionTechnology Used
BrazilNF-e (Nota Fiscal Eletrônica)(Preview) ER format + custom pipeline
ItalyFatturaPAER + Signature + Government connector
SpainSII VAT ReportingER + Message Processing (non-EI pipeline)
Saudi ArabiaZATCA JSON API + QR CodeER + Signature + Web service connector
EgyptETA JSON reportingER + Signature + JSON submission
UKMTD VAT ReturnER + Electronic Messaging + Web service
FranceChorus ProER + Government portal integration

🇧🇷 Brazil – NF-e Submission (Preview)

Microsoft offers a preview feature for Brazilian NF-e submission:

  • Generates NF-e XML via ER
  • Includes government-required tags like CFOP, NCM, and CST
  • Out of box pipeline
image-129 GS516 – Connecting to Government Portals and Web Services in Globalization Studio
  • Pipeline includes actions like:
    • Generate NF-e
    • Call SEFAZ service (Preview)
    • Store XML and PDF
  • Each pipeline feature has list of predefined collection of actions i.e. Cancellation step has following pipeline processing actions
image-132 GS516 – Connecting to Government Portals and Web Services in Globalization Studio

🇮🇹 Italy – FatturaPA Integration

Italy’s B2G and B2B e-invoicing uses the FatturaPA XML standard via SDI (Sistema di Interscambio).

Microsoft provides:

  • Prebuilt ER format for FatturaPA
  • Built-in Submit pipeline step: Call Italian SDI Service
  • Auto-signing using Azure Key Vault or certificate
  • Message status: Submitted, Accepted, Error

📌 No need for custom development ,  simply configure applicability and pipeline steps.

image-130 GS516 – Connecting to Government Portals and Web Services in Globalization Studio
  • Here is the processing pipeline of Sales invoice feature step.
image-131 GS516 – Connecting to Government Portals and Web Services in Globalization Studio

🇪🇸 Spain – SII VAT Submission (ER + Message Processing)

Unlike Brazil or Italy, Spain’s SII VAT submission is not handled via the Electronic Invoicing Add-in.

Instead, it’s configured through:

  • Electronic Reporting (ER) for SII XML generation
  • Electronic Message Processing for tracking & control
  • Processing Pipelines for sequencing actions
  • Web Service Settings for government API endpoints
  • Web Applications for authentication and integration

🪜 Step-by-Step: Submitting SII to AEAT in Spain

✅ Step 1: ER Format for SII

  • Microsoft provides the SII ER format (Sales Invoice, Purchase Invoice, Payments, etc.)
  • Generates XML for each transaction
  • Applies filtering via model mapping and query range
image-133 GS516 – Connecting to Government Portals and Web Services in Globalization Studio

✅ Step 2: Electronic Message Configuration

  • Navigate to Electronic Messaging Setup
  • Create a message type for SII (e.g., Outgoing invoices)
  • Link to:
    • Model mapping
image-134 GS516 – Connecting to Government Portals and Web Services in Globalization Studio
  • Format
image-135 GS516 – Connecting to Government Portals and Web Services in Globalization Studio

✅ Step 3: Electronic Message Statuses

  • Shows health of each submission i.e. Success, Partial accepted, technical error
image-137 GS516 – Connecting to Government Portals and Web Services in Globalization Studio

✅ Step 4: Electronic Message Processing Actions

  • Defines what the system should do with a message (e.g. transform it, send it to a web service, import a response, or update a record). Think of it as a step in a process like printing, emailing, or exporting a file.
image-136 GS516 – Connecting to Government Portals and Web Services in Globalization Studio

✅ Step 5: Electronic Message Processing (Pipeline)

  • Electronic Message Processing is the engine that runs the sequence of actions defined in a message processing framework. Think of it like a recipe that tells D365 what steps to follow, fetch records, generate a file, sign it, submit it, import the response, and update statuses.
image-139 GS516 – Connecting to Government Portals and Web Services in Globalization Studio

✅ Step 6: Electronic Message Processing (Pipeline) Actions

This controls the order of operations:

StepPurpose
Generate fileRun ER to produce SII XML
Sign (optional)Sign XML if required
Web service callSend file to AEAT endpoint
Status checkWait and fetch AEAT response

🧠 This is not part of the Electronic Invoicing add-in. It runs inside the standard Electronic Messaging engine.

image-138 GS516 – Connecting to Government Portals and Web Services in Globalization Studio

✅ Step 7: Configure Web Service (Secure connection to Webservices)

  • This screen is used to configure external API endpoints like government portals or custom logic apps  where D365 will send or receive electronic documents, such as invoices or tax files. It’s a technical bridge between D365 and the outside world.
image-141 GS516 – Connecting to Government Portals and Web Services in Globalization Studio

✅ Step 8: Web Application (Auth2.0)

Note – this is a sample web application created for other purpose. It is not for Spain SII AEAT submission

  • A Web Application is where you define the OAuth 2.0 authentication settings for connecting securely to external APIs (e.g. Logic Apps, government systems).
  • Imagine this as your login and token generator for accessing protected web services. You don’t call the API here. This setup just helps authenticate the call.
image-140 GS516 – Connecting to Government Portals and Web Services in Globalization Studio

✅ Step 9: Electronic Message (Container)

  • An Electronic Message is the container or envelope that holds all the data and actions related to a regulatory communication or document submission. It
    • Gets created when you’re about to send documents (like customer invoices) to a government or external API.
    • Tracks what has been sent, what failed, and what was returned.
    • Connects ER templates, message processing actions, and submission statuses.
image-142 GS516 – Connecting to Government Portals and Web Services in Globalization Studio
  • Request sent to AEAT Government site
image-140 GS516 – Connecting to Government Portals and Web Services in Globalization Studio
  • Response received from AEAT Government site
image-140 GS516 – Connecting to Government Portals and Web Services in Globalization Studio

🧠 Tips for Country-Specific Submissions

TipWhy It Helps
Always start with Microsoft’s templatesSaves weeks of custom work
Use UAT/test environments for submissionAvoid accidental production posting
Configure Web App + Certificate earlyRequired for OAuth or mutual TLS
Monitor messages regularlyRejections can be fixed early

🧭 Related Articles


📘 Coming Up Next

In GS517 – Configuring UK MTD VAT Submission in D365FSCM, we’ll walk through a complete, real-world setup of Making Tax Digital (MTD) for VAT in the UK—connected to the HMRC sandbox environment.
You’ll learn:

  • How to configure application parameters
  • Set up the electronic messaging framework
  • Connect and authenticate with the UK government gateway
  • Validate your submission end-to-end using test credentials

📖 Continue reading: GS517 – UK MTD VAT Submission Setup


🔍 View Full Article in PDF

GS516

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