Repository.XFRACAS.ImportXFRACASXML

Imports an XML byte array into a desired XFRACAS entity. Returns an Integer that represents the system ID of the byte array.

All XML files must first be in the XFRACAS XML format before they can be successfully imported. To view the XFRACAS formats, see the XFRACAS9/10 Import Business Logic (PDF) document.

Syntax
.XFRACAS.ImportXFRACASXML(entityID, importType, byteData, fileTitle, fileDescription)

Parameters
entityID


 * Integer. The ID number of the XFRACAS entity to import the data into. (Required)

importType


 * The type of XFRACAS element (e.g., incident, problem, etc.) to import. Can be any XFRACASImportType constant. (Required)

byteData


 * Byte. The byte array of the XML to import. (Required)

fileTitle


 * String. The file title of the XML file byte array to import. (Required)

fileDescription


 * String. A description of the XML to import. (Required)

Example
VB.NET MyRepository Repository ListOfXFRACASEntities NameIdPair ListOfXFRACASEntities = MyRepository.XFRACAS.GetAllXFRACASEntities DesiredEntityID For Each Entity NameIdPair In ListOfXFRACASEntities If Entity.Name = DesiredEntityID = Entity.ID              Exit For End If       Next xmlObject = byteArray Byte = MyRepository.XFRACAS.SerializeXMLObjectToByteArray(byteArray, xmlObject) ImportXMLSystemID ImportXMLSystemID = MyRepository.XFRACAS.ImportXFRACASXML(DesiredEntityID, XFRACASImportType.Incident, byteArray,, )