📚 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 BusinessPartners 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 BusinessPartners object (C#)Copy Code
'Set import export model first 
vComp.XmlExportType = BoXmlExportTypes.xet_ExportImportMode 
 
'Delete line from the BusinessPartners object 
Dim obp As BusinessPartners = vComp.GetBusinessObject(BoObjectTypes.oBusinessPartners) 
 
'Get object 
obp.GetByKey("C001") 
obp.SaveToFile("C:\testbp.xml") 
 
'Delete sub line directly from C:\testbp.xml 
 
'Update object     
obp.UpdateFromXML("C:\testbp.xml")

See Also