📚 SAP Business One SDK Help

UpdateFromXML Method
See Also  Example
FileName

Specifies the path and file name of the XML data.

Description

Receives and processes the XML content.

You can remove sub-object lines from the Document object via the XML file.

Syntax

Visual Basic
Public Function UpdateFromXML( _
   ByVal FileName As String _
) As Long

Parameters

FileName

Specifies the path and file name of the XML data.

Example

Deleting line from the Documents object (C#)Copy Code
'Set import export model first 
vComp.XmlExportType = BoXmlExportTypes.xet_ExportImportMode 
 
'Delete line from the Documents object 
Dim vvdoc As Documents = vComp.GetBusinessObject(BoObjectTypes.oOrders) 
 
'Get object 
vvdoc.GetByKey(1) 
vvdoc.SaveToFile("C:\testdoc.xml") 
 
'Delete sub line directly from C:\testdoc.xml 
 
'Update object 
vvdoc.UpdateFromXML("C:\testdoc.xml") 
 
 

See Also