Repository.XFRACAS.ImportXFRACASXMLString

Uploads an import file bytestream for processing and returns the system ID

Syntax

 * ImportXFRACASXMLString( entityID, ImportType XFRACASImportType , xmlString , fileTitle , fileDescription )

Parameters
 * entityID: The ID of the entity to import into.


 * ImportType: The type of XFRACAS Import to utilize, specified as XFRACASImportType.


 * xmlString: The string consisting of the XML to import.


 * fileTitle: The file title of the XML file byte array to import.


 * fileDescription: A description of the XML to import.

Usage Example
'       '        Success= Success = MyRepository.ConnectToSQLRepository("SQLServerPath", "SQLDatabaseName") '        DesiredEntityID DesiredEntityID = ' '       xmlString= '        '        ImportXMLSystemID ImportXMLSystemID = MyRepository.ImportXFRACASXMLString(DesiredEntityID, XFRACASImportType.Incident, xmlString, "XMLFileTitle", "XMLFileDescription")

Reformatted Usage Example
Private WithEvents MyRepository As New Repository

Dim Success As Boolean = False Success = MyRepository.ConnectToSQLRepository("SQLServerPath", "SQLDatabaseName")

Dim DesiredEntityID As Integer DesiredEntityID = '

Dim xmlString As String = Nothing 'populate the xmlString with the XML text

Dim ImportXMLSystemID As Integer ImportXMLSystemID = MyRepository.ImportXFRACASXMLString(DesiredEntityID, XFRACASImportType.Incident, xmlString, "XMLFileTitle", "XMLFileDescription")