iKnow - loading metadata programmatically
I have a class which, in the previous instance, was able to extract metadata field names and data from a text file, and load this information into a domain. I am trying to run this in the field test instance, but it is not loading the metadata - only the field names. I am not getting an error, but the data is not loaded.
The few changes I made to the original class:
Previously, this class also ran iTables. I commented all that code out.
To create the domain, I replaced the line:
set tSC = ##class(HSTA.DomainExpert.utils.DomainUtils).%CreateDomain(dname,.domoref,ikcfgName)
with two lines:
set domoref = ##class(%iKnow.Domain).%New(dname)
set tSC = domoref.%Save()
Also, the newly created domain does not show in the iKnow Architect "Open" menu, but it IS available in the Knowledge Portal.
Are there other changes I need to make in order to create a domain using %iKnow now? Thank you.