Book a Demo

Author Topic: Export / Import Reference Data  (Read 5162 times)

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Export / Import Reference Data
« on: January 16, 2014, 02:48:04 am »
Hi Guys

Does anyone know of an API function that will export (and more importantly) import Reference Data?

Ideally the API function (if one exists) should accessible in Scripting rather than an Extension)

I realise I may be able to process the Reference Data xml file directly in the Script, but I would like an easier way if possible

Cheers
Models are great!
Correct models are even greater!

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: Export / Import Reference Data
« Reply #1 on: January 16, 2014, 03:25:01 am »
Hi Phil

The only way I've found for doing this is

Repository.CustomCommand("Repository", "ImportRefData", XMLString)

where XMLString contains the raw XML string as created in the file from "Export Reference Data"

Never looked for Export but assume it probably is a string defining the process "ExportRefData" me thinks.

I put some example code a week or so ago on the forum using this command.

EXploringEA - information, utilities and addins

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Export / Import Reference Data
« Reply #2 on: January 16, 2014, 03:27:05 am »
Excellent, many thanks another use the undocumented CustomCommand

Cheers
Models are great!
Correct models are even greater!