Book a Demo

Author Topic: Access to Internal Artifact File  (Read 4579 times)

st33ve

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Access to Internal Artifact File
« on: June 19, 2014, 10:44:56 pm »
Is it possible to access (at least export) file represented by internal artifact? And btw can I retrieve original file name?
I´d like to implement add-in that processes files stored in model as artifacts.

Thanx

Stepan

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Access to Internal Artifact File
« Reply #1 on: June 20, 2014, 12:17:30 am »
If I see that right the artifact created as external link does not have any reference to the original file. I created one and could not open the original file in any way. Or is there some hidden menu I could not find?

For those stores as internal: the contents is stored in the according record in t_document.

q.

st33ve

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Access to Internal Artifact File
« Reply #2 on: June 20, 2014, 08:14:32 pm »
Thank you for pointer to the t_document table. Is this table accessible via automation API? I didn't find any reference in documentation.

S.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Access to Internal Artifact File
« Reply #3 on: June 21, 2014, 12:22:30 am »
I cant remember that there is any API method. However, the Repository.SQLQuery allows to read that table.

q.
« Last Edit: June 21, 2014, 12:22:47 am by qwerty »