locked
copy document to another library then set the document uneditable RRS feed

  • Question

  • I am using spd workflow. in workflow last step i want copy document to another library then set the document uneditable for everyone(except list manager).

    the copy listitem action cannot copy document to another list that creator don't have edit permission. it needs edit permission on the other list.

     

    how to set the document uneditable?

    another question, how to move file to a folder?

     

    thanks in advance



    Thursday, March 31, 2011 10:57 AM

Answers

  • hi there, You should an impersonation step, to move the file to the library. This means that the workflow will use the security rules from the creator of the workflow.
    Regards, Marijn Somers|| SharePoint Consultant- MCTS SharePoint 2007, 2010 configuring http://www.beyond-it.be || Twitter: http://twitter.com/marijnsomers || http://marijnsomers.blogspot.com
    • Proposed as answer by Marijn SomersMVP Thursday, March 31, 2011 11:29 AM
    • Marked as answer by ayya Thursday, March 31, 2011 12:18 PM
    • Unmarked as answer by ayya Thursday, March 31, 2011 3:36 PM
    • Unproposed as answer by Clayton Cobb Friday, April 1, 2011 3:31 AM
    • Marked as answer by ayya Friday, April 1, 2011 3:31 AM
    Thursday, March 31, 2011 11:28 AM
  • do you mean have to write a custom action?


    No, it's a built-in SPD2010 activity.  You add an impersonation step, and then add the copy list item activity inside this step so that it runs with the permissions of the workflow creator (you).  That way, as long as you have permissions to the 2nd doc lib, the workflow will run successfully without the original user ever having permissions to the 2nd doc lib.  The downside is that the "Created By" field will show the name of the impersonator (you).  If this isn't good enough, then you'll have to give everyone Add Items permissions to that 2nd doc lib, then you'll have to run a workflow that dynamically changes permissions on every item upon creation.  Solution 1 sounds much, much better.

    Marijn, do not propose your own replies as answers.


    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force

     


    • Marked as answer by ayya Sunday, April 3, 2011 7:07 AM
    Friday, April 1, 2011 3:33 AM

All replies

  • hi there, You should an impersonation step, to move the file to the library. This means that the workflow will use the security rules from the creator of the workflow.
    Regards, Marijn Somers|| SharePoint Consultant- MCTS SharePoint 2007, 2010 configuring http://www.beyond-it.be || Twitter: http://twitter.com/marijnsomers || http://marijnsomers.blogspot.com
    • Proposed as answer by Marijn SomersMVP Thursday, March 31, 2011 11:29 AM
    • Marked as answer by ayya Thursday, March 31, 2011 12:18 PM
    • Unmarked as answer by ayya Thursday, March 31, 2011 3:36 PM
    • Unproposed as answer by Clayton Cobb Friday, April 1, 2011 3:31 AM
    • Marked as answer by ayya Friday, April 1, 2011 3:31 AM
    Thursday, March 31, 2011 11:28 AM
  • do you mean have to write a custom action?


    Thursday, March 31, 2011 3:37 PM
  • do you mean have to write a custom action?


    No, it's a built-in SPD2010 activity.  You add an impersonation step, and then add the copy list item activity inside this step so that it runs with the permissions of the workflow creator (you).  That way, as long as you have permissions to the 2nd doc lib, the workflow will run successfully without the original user ever having permissions to the 2nd doc lib.  The downside is that the "Created By" field will show the name of the impersonator (you).  If this isn't good enough, then you'll have to give everyone Add Items permissions to that 2nd doc lib, then you'll have to run a workflow that dynamically changes permissions on every item upon creation.  Solution 1 sounds much, much better.

    Marijn, do not propose your own replies as answers.


    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force

     


    • Marked as answer by ayya Sunday, April 3, 2011 7:07 AM
    Friday, April 1, 2011 3:33 AM