Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Save-OfficeInvoice

Module PSWriteOffice
Inputs
OfficeIMO.Invoicing.Invoice
Outputs
OfficeIMO.Invoicing.Invoice

Saves CII or UBL with strict source and target loss handling.

Syntax

Save-OfficeInvoice [-AllowProfileLoss] [-AllowUnmappedDataLoss] [-Force] -Invoice <Invoice> [-PassThru] [-Path] <String> [-Profile <InvoiceProfile>] [-ReportVariable <String>] [-SpecificationRelease <InvoiceSpecificationRelease>] [-Syntax <Cii|Ubl>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Saves CII or UBL with strict source and target loss handling.

$invoice | Save-OfficeInvoice -Path ./invoice.xml -Syntax Ubl

Parameters

-AllowProfileLoss SwitchParameter optional
Permit only profile-defined reductions supported by the target engine.
-AllowUnmappedDataLoss SwitchParameter optional
Explicitly permit discarding unmapped source business data.
-Force SwitchParameter optional
Replace an existing output.
-Invoice Invoice requiredpipeline: True (ByValue)
Editable invoice.
-PassThru SwitchParameter optional
Return the created or changed object.
-Path String requiredposition: 0
Destination XML filename.
-Profile InvoiceProfile optional
Output profile; supported combinations are listed by Get-OfficeInvoiceTarget.
Possible values: Minimum, BasicWithoutLines, Basic, En16931, Extended, XRechnung, PeppolBis, ExtendedCtcFr
-ReportVariable String optional
Variable receiving target-mapping diagnostics.
-SpecificationRelease InvoiceSpecificationRelease optional
Exact supported output specification.
Possible values: En16931_1_3_16, FacturX_1_09_2_Zugferd_2_5_2, XRechnung_3_0_2_2026_08_31, PeppolBis_3_0_21
-Syntax InvoiceSyntax optional
Output XML syntax.
Possible values: Cii, Ubl

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.