This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

COM API Delete Properties From A Vault (VB-Script)

Good day all,

I need assistance in writing a VB-Script to delete property definitions from the vault. To my understanding, I need to use the VaultPropertyDefOperations~RemovePropertyDefAdmin method, I need help understanding where to place the script (type of event handler) and the formatting of the script (get property by id first...).

I have a project to clean up property definitions that are not in use from a vault. Or if there is an alternative faster approach to removing property definitions from a vault that will be highly appreciated.

Thank you

Parents
  • Hi Michael,

    If you need to remove property definitions then you could use the COM API to do so from an external application, but I would advise strongly against using an event handler or similar.

    Depending upon the number of properties that you need to remove, don't dismiss removing them manually via the M-Files Admin.

    Regards,

    Craig.

Reply
  • Hi Michael,

    If you need to remove property definitions then you could use the COM API to do so from an external application, but I would advise strongly against using an event handler or similar.

    Depending upon the number of properties that you need to remove, don't dismiss removing them manually via the M-Files Admin.

    Regards,

    Craig.

Children