Creating a duplicate Object using vbscript with Permissions

I am trying to do the same thing here and the script example works.

Copying Objects (m-files.com)

The only issue is that the duplicate file is created with no permissions.

I inserted this line to see if it would change the permission on the new file, but all it it does is change the permissions to the old file which I don't need because it is already there.

Vault.ObjectOperations.ChangePermissionsToNamedACL ObjVer, 20, False     '20 is the NACL ID I am using.

All I want is for the script to keep the same permissions as the original object.

Please advise.

Parents Reply Children
No Data