Book a Demo

Author Topic: Change Element.MetaType in a script  (Read 3461 times)

[email protected]

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Change Element.MetaType in a script
« on: June 19, 2015, 02:55:40 am »
I've got some elements which were created before we added a profile, I now want to write a script to update those elements to the correct elements in the profile.

The Element.MetaType attribute in the API is read only, is the only way to change this by an SQL UPDATE statement issued via the the Repository.Execute() Method?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Change Element.MetaType in a script
« Reply #1 on: June 19, 2015, 08:35:48 am »
You need to update the stereotype. (There is no MetaType field in the db either)