Repository.XFRACAS.ImportXFRACASXML: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template: | {{Template:API}}{{Template:APIBreadcrumb|10|.[[Repository Class|Repository]]}} | ||
<onlyinclude>Imports data from an XML file into a desired XFRACAS entity. Returns an '''Integer''' that represents the system ID.</onlyinclude> | |||
All XML files must first be in the XFRACAS format before they can be successfully imported. To view the XFRACAS formats, refer to the [[XFRACAS XML Import Documentation]]. | |||
The | == 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 Enumeration|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 == | |||
'{{APIComment|Declare a new repository connection class.}} | '{{APIComment|Declare a new repository connection class.}} | ||
Line 55: | Line 65: | ||
{{APIPrefix|Dim}} ImportXMLSystemID {{APIPrefix|As Integer}} | {{APIPrefix|Dim}} ImportXMLSystemID {{APIPrefix|As Integer}} | ||
ImportXMLSystemID = MyRepository.XFRACAS.[[Repository.ImportXFRACASXML|ImportXFRACASXML]](DesiredEntityID, [[XFRACASImportType]].Incident, byteArray, "XMLFileTitle", "XMLFileDescription") | ImportXMLSystemID = MyRepository.XFRACAS.[[Repository.ImportXFRACASXML|ImportXFRACASXML]](DesiredEntityID, [[XFRACASImportType]].Incident, byteArray, "XMLFileTitle", "XMLFileDescription") | ||
--> |
Revision as of 18:31, 19 August 2015
Member of: SynthesisAPI10.Repository
Imports data from an XML file into a desired XFRACAS entity. Returns an Integer that represents the system ID.
All XML files must first be in the XFRACAS format before they can be successfully imported. To view the XFRACAS formats, refer to the XFRACAS XML Import Documentation.
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)