cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Copy document to another library with custom column data and workflow data

I would like to setup a workflow to copy a document, some of the custom columns with the document, and a couple of workflow variables that are assigned values dynamically during the workflow, all to another document library in another site collection. I was trying to use the copyitemsinto method of the Copy web service. The document gets copied over but none of the extra data gets added to the columns in the document library. The values do appear in the workflow history comments when I use the Log to History List. What is the best method to accomplish?

Labels: (2)
0 Kudos
Reply
1 Reply
Workflow Hero

Re: Copy document to another library with custom column data and workflow data

My soap action below:

<?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:CopyIntoItems>
      <mSmiley FrustratedourceUrl>{WorkflowVariable:varSourceUrl}</mSmiley FrustratedourceUrl>
      <mSmiley Very HappyestinationUrls>
        <m:string>{WorkflowVariable:varDestinationUrl}{ItemProperty:FileLeafRef}</m:string>
      </mSmiley Very HappyestinationUrls>
      <m:Fields>
        <m:FieldInformation Type="string" DisplayName="TransferID" InternalName="TransferID" Value="{WorkflowVariable:varGuid}">
        </m:FieldInformation>
        <m:FieldInformation Type="string" DisplayName="OriginalID" InternalName="OriginalID" Value="{WorkflowVariable:varItemID}">
        </m:FieldInformation>
        <m:FieldInformation Type="string" DisplayName="OriginalUrl" InternalName="OriginalUrl" Value="{WorkflowVariable:varSourceUrl}">
        </m:FieldInformation>
        <m:FieldInformation Type="string" DisplayName="Source Modified By" InternalName="Source_x0020_Modified_x0020_By" Value="{WorkflowVariable:varModifiedBy}">
        </m:FieldInformation>
      </m:Fields>
      <mSmiley Frustratedtream>base64Binary</mSmiley Frustratedtream>
    </m:CopyIntoItems>
  </soap:Body>
</soap:Envelope>

0 Kudos
Accept as Solution Reply