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.

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.XFRACAS.GetAllXFRACASEntities ' ImportXMLSystemID ImportXMLSystemID = MyRepository.XFRACAS.ImportXFRACASXMLFile(ListOfXFRACASEntities(0).ID, XFRACASImportType.Incident, "XMLFileName", "XMLFileDescription")