I have a workflow which starts by copying some documents into a drafts folder. The thing is, after the workflow is finished the copied document needs to be copied back into the list(folder) from which it came. I want the copy to replace the original in the list. How can I specify this?

enter image description here


In the action property, set overwrite as yes.

enter image description here

  • you misunderstand my question: I need to get information for "tolistid" – Josh Sharkey Jul 7 '20 at 16:00

As per the screenshot, there is an option to overwrite. It is set to "No". Please try changing that to "Yes".

If the above does not help. Check under what account, the workflow is running. That account should have "contribute" permission on the library where it is trying to replace the documents .

Edit : to get the list id of the list where the workflow is running: we can get current List Id (GUID) from Workflow Context -> Workflow Status URL after performing some string operation. Have a look at the answers to the following question:

Can i get a listid (guid) value of a current list in SharePoint designer?

  • you misunderstand my question: I need to get information for "tolistid" – Josh Sharkey Jul 7 '20 at 15:59
  • 1
    You need to get information for "tolistid" means? Do you need to figure out which id to choose ? i.e you need to find the id of the original list from where the document came? – SOURAV MUKHERJEE Jul 7 '20 at 16:24
  • that is correct – Josh Sharkey Jul 8 '20 at 14:25
  • See if my edit to the answer helps you. – SOURAV MUKHERJEE Jul 8 '20 at 17:02
  • Looks like I am able to get the listID but i am unable to insert that ID into the copy file action in the workflow – Josh Sharkey Jul 9 '20 at 18:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.