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


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

importType


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

byteData


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

fileTitle


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

fileDescription


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

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,, )