cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API: How to set an existing MegaObject’s owner property with a library

sunuyleb
Contributor
Hello,

I want to associate an existing MegaObject with a library.
I can set it on mega user interface, but when I
tried to set owner property with API it did not work. Is there any way to make it with VB Script API?

Thanks,
2 Replies

Hi @hsoegaard ,

 

it worked, thank you @hsoegaard.

hsoegaard
MEGA Partner
MEGA Partner

You are not writing which version of HOPEX, but in V3 it would be something similar to this:

 

Set mgobjInventoryObject = mgRoot.getObjectFromId(id)
mgobjInventoryObject.getCollection("~WI(ov(ir7jK0[Owner Container]").Add mgobjOwnerPackager