11-25-2016 12:29 AM
We need to change the ownership of the document when it get's uploaded into a folder, as it goes through a workflow where on approval, it is moved to a different folder in which the uploader has only consumer rights. Currently the documents are allowed to be deleted as the uploader is still the owner of the document. How do we prevent this from happening?
11-25-2016 03:23 AM
Hi,
In order to change the owner of a document you just need to create a script having below given code
document.setOwner("NewOwnerId");
document.save();
You can execute this script by creating rule on a folder
Let me know if you have any further query with this.
Thanks,
Kalpesh
11-25-2016 03:23 AM
Hi,
In order to change the owner of a document you just need to create a script having below given code
document.setOwner("NewOwnerId");
document.save();
You can execute this script by creating rule on a folder
Let me know if you have any further query with this.
Thanks,
Kalpesh
11-25-2016 04:06 AM
Hi,
Thank you - will check this and revert back
Rajagopal G
Software Consultant
11-25-2016 05:26 AM
Worked for us - thank you very much
08-01-2018 03:06 AM
Hello Sir,
I wanted to Prevent Creators of Documents from Deleting Their Own Document. Can you please elaborate your answer? It will be helpful for me. Thanks in advance.
-Mayuri
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.