cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

Copying Document from Another Library into Workflow Library

Jump to solution

I'm setting up a workflow in a Document Library that will create a folder using the name entered by the user. Then the workflow needs to copy a document from another library into the newly created folder and update the name of the document. Does anyone have any suggestions on how to do this?

Here is an example of what needs to happen:

User navigates to form and enters account name: Testing

Folder is created called Testing

Workflow then needs to pull two documents from a different document library, copy them to the current library and update the name of each document to read Testing[DocumentName1] Testing[DocumentName2].

Thanks in advance!

Labels: (3)
0 Kudos
Reply
1 Reply
tomcastiglia
Nintex Newbie

Re: Copying Document from Another Library into Workflow Library

Jump to solution

Pablo,

I think the easiest way to do this is using Call Web Service action and call the Copy.ASMX service, specifically the CopyIntoItemsLocal method.  You'll need to specify the SOAP XML message for this, which looks like this:

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/">

  <soap:Header>

  </soap:Header>

  <soap:Body>

    <m:CopyIntoItemsLocal>

      <mSmiley FrustratedourceUrl>{WorkflowVariableSmiley FrustratedourceUrl}</mSmiley FrustratedourceUrl>

      <mSmiley Very HappyestinationUrls>

        <m:string>{WorkflowVariableSmiley Very HappyestUrl}</m:string>

      </mSmiley Very HappyestinationUrls>

    </m:CopyIntoItemsLocal>

  </soap:Body>

</soap:Envelope>

Below is an example of this action fully configured:

Reply