Cmdlet
Save-OfficeInvoice
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 SetsExamples
Saves CII or UBL with strict source and target loss handling.
$invoice | Save-OfficeInvoice -Path ./invoice.xml -Syntax UblParameters
- -AllowProfileLoss SwitchParameter
- Permit only profile-defined reductions supported by the target engine.
- -AllowUnmappedDataLoss SwitchParameter
- Explicitly permit discarding unmapped source business data.
- -Force SwitchParameter
- Replace an existing output.
- -Invoice Invoice
- Editable invoice.
- -PassThru SwitchParameter
- Return the created or changed object.
- -Path String
- Destination XML filename.
- -Profile InvoiceProfile
- Output profile; supported combinations are listed by Get-OfficeInvoiceTarget.
- Possible values:
Minimum,BasicWithoutLines,Basic,En16931,Extended,XRechnung,PeppolBis,ExtendedCtcFr - -ReportVariable String
- Variable receiving target-mapping diagnostics.
- -SpecificationRelease InvoiceSpecificationRelease
- 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
- 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.