Codeunit 5505367 M365 XmlPort Management
Codeunit 5505367 M365 XmlPort Management
Methods
XmlPortXmlFilter
procedure XmlPortXmlFilter(): Text
Returns a XML file filter text for XmlPort import/export operations.
Parameters / Return Value
Returns
Text[]Text
XmlPortTxtFilter
procedure XmlPortTxtFilter(): Text
Returns a Text file filter text for XmlPort import/export operations.
Parameters / Return Value
Returns
Text[]Text
AllFilesFilter
procedure AllFilesFilter(): Text
Returns an all files filter text for XmlPort import/export operations.
Parameters / Return Value
Returns
Text[]Text
XmlPortImport
procedure XmlPortImport(xmlPortId: Integer; fromStream: InStream): Boolean
Uses the specified XmlPort and imports content from fromStream.
Parameters / Return Value
xmlPortId
IntegerInteger
fromStream
InStreamInStream
Returns
BooleanBoolean
XmlPortImport
procedure XmlPortImport(xmlPortId: Integer; var fromTempBlob: Codeunit "Temp Blob"): Boolean
Uses the specified XmlPort and imports content from fromTempBlob.
Parameters / Return Value
xmlPortId
IntegerInteger
fromTempBlob
Codeunit "Temp Blob"Codeunit “Temp
Returns
BooleanBoolean
XmlPortImport
procedure XmlPortImport(xmlPortId: Integer; dialogTitle: Text; fromFilter: Text; fromFolder: Text; var fromFile: Text): Boolean
Shows a OpenFile dialog (dialogTitle, fromFilter, fromFolder, fromFile) and then uses the specified XmlPort and imports content from the selected file.
Parameters / Return Value
xmlPortId
IntegerInteger
dialogTitle
Text[]Text
fromFilter
Text[]Text
fromFolder
Text[]Text
fromFile
Text[]Text
Returns
BooleanBoolean
XmlPortImport
procedure XmlPortImport(xmlPortId: Integer; dialogTitle: Text; fromFilter: Text; fromPath: Text): Boolean
Shows a OpenFile dialog (dialogTitle, fromFilter, fromPath) and then uses the specified XmlPort and imports content from the selected file.
Parameters / Return Value
xmlPortId
IntegerInteger
dialogTitle
Text[]Text
fromFilter
Text[]Text
fromPath
Text[]Text
Returns
BooleanBoolean
XmlPortExport
procedure XmlPortExport(xmlPortId: Integer; toStream: OutStream): Boolean
Exports content using the specified XmlPort to toStream.
Parameters / Return Value
xmlPortId
IntegerInteger
toStream
OutStreamOutStream
Returns
BooleanBoolean
XmlPortExport
procedure XmlPortExport(xmlPortId: Integer; var toTempBlob: Codeunit "Temp Blob"): Boolean
Exports content using the specified XmlPort to toTempBlob.
Parameters / Return Value
xmlPortId
IntegerInteger
toTempBlob
Codeunit "Temp Blob"Codeunit “Temp
Returns
BooleanBoolean
XmlPortExport
procedure XmlPortExport(xmlPortId: Integer; dialogTitle: Text; toFilter: Text; toFolder: Text; var toFile: Text): Boolean
Shows a SaveFile dialog (dialogTitle, toFilter, toFolder, toFile) and then uses the specified XmlPort to export content to the selected file.
Parameters / Return Value
xmlPortId
IntegerInteger
dialogTitle
Text[]Text
toFilter
Text[]Text
toFolder
Text[]Text
toFile
Text[]Text
Returns
BooleanBoolean
XmlPortExport
procedure XmlPortExport(xmlPortId: Integer; dialogTitle: Text; toFilter: Text; var toPath: Text): Boolean
Shows a SaveFile dialog (dialogTitle, toFilter, toPath) and then uses the specified XmlPort to export content to the selected file.
Parameters / Return Value
xmlPortId
IntegerInteger
dialogTitle
Text[]Text
toFilter
Text[]Text
toPath
Text[]Text
Returns
BooleanBoolean
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.