Repository.XFRACAS.ImportXFRACASXMLFile

This function uploads an import file for processing and returns the system ID. To view XFRACAS formats refer to the XFRACAS XML Import Documentation business logic contents.

Syntax

 * ImportXFRACASXMLFile( entityID, ImportType XFRACASImportType , fileName , fileDescription )

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


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


 * fileName: The file path of the XML file to import.


 * fileDescription: A description of the XML to import.

Usage Example
' ' Success  = Success = MyRepository.ConnectToSQLRepository("SQLServerPath", "SQLDatabaseName") ' ListOfXFRACASEntities  NameIdPair ListOfXFRACASEntities = MyRepository.GetAllXFRACASEntities ' ImportXMLSystemID ImportXMLSystemID = MyRepository.ImportXFRACASXMLFile(ListOfXFRACASEntities(0).ID, XFRACASImportType.Incident, "XMLFileName", "XMLFileDescription")

Reformatted Usage Example
Private WithEvents MyRepository As New Repository

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

Dim ListOfXFRACASEntities As NameIdPair ListOfXFRACASEntities = MyRepository.GetAllXFRACASEntities

Dim ImportXMLSystemID As Integer ImportXMLSystemID = MyRepository.ImportXFRACASXMLFile(ListOfXFRACASEntities(0).ID, XFRACASImportType.Incident, "XMLFileName", "XMLFileDescription")